Listing retention policy set for all users on Exchange 2010

This command will list the retention policy set on all users in an Exchange 2010 environment and place an output file called retention.txt on the c drive

[PS] C:\Windows\system32>Get-Mailbox -ResultSize unlimited | ft Name, RetentionPolicy > c:\retention.txt

This command will list the retention policy set on all users on a specific Exchange server and place an output file called retention.txt on the c drive

[PS] C:\Windows\system32>Get-Mailbox -server Exchangesevername -ResultSize unlimited | ft Name, RetentionPolicy > c:\retention.txt

This command will list the retention policy set on all users on a specific Exchange server and place an output file called retention.txt on the c drive

[PS] C:\Windows\system32>Get-Mailbox -database databasename -ResultSize unlimited | ft Name, RetentionPolicy > c:\retention.txt

Name RetentionPolicy
—- —————
User1 6 Month Policy
User2 3 Month Policy
User3 6 Month Policy
User4 3 Month Policy
User5 6 Month Policy
User6 3 Month Policy
User7 6 Month Policy

Leave a Reply

Your email address will not be published. Required fields are marked *