Disclaimer: We hope that the information on these pages is valuable to you.
Your use of the information contained in these pages, however, is at your sole risk.
All information on these pages is provided "as -is", without any warranty, whether express or implied,
of its accuracy, completeness, fitness for a particular purpose, title or non-infringement,
and none of the third-party products or information mentioned in the work are authored, recommended, supported or guaranteed by site owners or operators.
Further, the site owners and operators shall not be liable for any damages you may sustain by using this information,
whether direct, indirect, special, incidental or consequential, even if it has been advised of the possibility of such damages.
Warning: main(/home/prosphot/public_html/smog/track/write_logs.php) [function.main]: failed to open stream: No such file or directory in /home/prosphot/public_html/blog/skins/leaf/footer.php on line 3
Warning: main(/home/prosphot/public_html/smog/track/write_logs.php) [function.main]: failed to open stream: No such file or directory in /home/prosphot/public_html/blog/skins/leaf/footer.php on line 3
Warning: main() [function.include]: Failed opening '/home/prosphot/public_html/smog/track/write_logs.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/prosphot/public_html/blog/skins/leaf/footer.php on line 3
Tue 07.29.08: Terminated users script
We have a process where when somone is terminated from the company we move their AD account to a specific OU. We then have a script that runs that disables their mailbox.Here are the commands we use
1- Generate an HTML of users to have email disabled
get-mailbox -OrganizationalUnit [REMOVED]/Corp/Users/Terminations | convertto-html -property Name,OrganizationalUnit -Title 'Terminated Users' > C:\term_log.html"
2- Do the actual disable-mailboxes
get-mailbox -OrganizationalUnit [REMOVED]/Corp/Users/Terminations | disable-mailbox -confirm:$false"
We then email the results by using a .vbs script that takes the output and emails it. This gives us the ability to view what will be deleted in 45 days.
Item Rating Information....