troubleshooting Question

PowerShell command to list all Exchange mailboxes that have the same retention policy.

Avatar of ei00004
ei00004Flag for United States of America asked on
ExchangePowershell
1 Comment1 Solution16 ViewsLast Modified:

I need a PowerShell command to list all Exchange 2010 mailboxes that have the same retention policy. Or I need a PowerShell command to list all Exchange 2010 mailboxes that have a retention policy equal to "Test Policy".


So far I have come up with the following commands which neither works:

Get-Mailbox -database "database name" -Filter {retentionpolicy -eq "Test  Policy"

Get-Mailbox -database "database name  | where{$_.retentionpolicy -eq "Test Policy"}

ASKER CERTIFIED SOLUTION
Jian An Lim
Solutions Architect
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros