Created
August 23, 2016 01:54
-
-
Save mattmcnabb/bbe0f0d02439e6affb240d594dc3642a to your computer and use it in GitHub Desktop.
Blog_exchange-online-managing-clutter
This file contains 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 -Filter * -ResultSize Unlimited | Foreach { | |
$DN = $_.DistinguishedName | |
$Status = Get-Clutter -Identity $DN | Select -ExpandProperty isEnabled | |
if (!$Status) | |
{ | |
Set-Clutter -Identity $DN -Enable $false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment