Add-PSSnapin *exchange*
Get-Mailbox | Get-aduser -identity {$_.samaccountname} -Properties enabled | where {$_.enabled -eq $False} | Select Name |
Very simple one liner script that'll list all mailboxes that have their associated users account disabled.
You could package this up into an email and send that to the relevant people on a regular basis.
Ahhh using Automation to make your team look more professional... Is there anything more rewarding?
No comments:
Post a Comment