Created
October 28, 2015 20:28
-
-
Save jangeador/b2dfe9676eb2377cdcdc to your computer and use it in GitHub Desktop.
Disable Mailbox for Active Directory Disabled Accounts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-Mailbox -resultsize unlimited | where { $_.ExchangeUserAccountControl -match 'AccountDisabled'} | disable-mailbox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment