Created
August 10, 2020 08:48
-
-
Save win2000b/6e1f2140a70a13a33776d45b18b8595b to your computer and use it in GitHub Desktop.
Remove Holds and then query
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
$mailboxes = Get-Mailbox | |
foreach ($mailbox in $mailboxes) | |
{ | |
set-mailbox $mailbox.Alias -removedelayholdapplied | |
set-mailbox $mailbox.Alias -removedelayreleaseholdapplied | |
} | |
$mailboxes = Get-Mailbox | |
foreach ($mailbox in $mailboxes) | |
{ | |
Get-Mailbox $mailbox.Alias |FL *HoldApplied* | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment