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 |