Tuesday, November 25, 2014

Quickly Find Mailboxes on Retention Hold.

I am looking to implement a process to exclude/include mailboxes from mailbox retention policies. Doing some research, I found you can use the FILTER option on the get-mailbox for LIT holds, but not a retention hold. Then I stumbled upon this post where they broke down the AD property "msExchELCMailboxFlags". Now using the native AD module command, I can quickly search my entire environment for mailboxes where "Expiration Suspended".

get-aduser -Properties msExchELCMailboxFlags -filter {msExchELCMailboxFlags -band 1}

No comments:

Post a Comment