List disabled mailboxes and export to CSV

January 10, 2011
Share on Twitter
Get-Mailbox | where { $_.ExchangeUserAccountControl -eq "Accountdisabled" -and $_.recipienttypedetails -eq "usermailbox"  } | select name | Export-Csv c:\disableduserswithmailboxes.csv
Share
Share on Twitter

posted in Exchange Server, Powershell by Anıl ERDURAN

Follow comments via the RSS Feed | Leave a comment | Trackback URL

Leave Your Comment

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org