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

Get-Mailbox | where { $_.ExchangeUserAccountControl -eq "Accountdisabled" -and $_.recipienttypedetails -eq "usermailbox" } | select name | Export-Csv c:\disableduserswithmailboxes.csv
Share
posted in Exchange Server, Powershell by Anıl ERDURAN
Follow comments via the RSS Feed | Leave a comment | Trackback URL