List of what retention policy is applied to mailboxes
I know I can go in and see what policy is applied to the mailboxes by doing the below:
1. Open theExchange Management Console windows.
2. Navigate to theOrganization Configuration and click Mailbox.
3. Select the retention policy in the Retention Policies tab.
4. ChooseMailboxes tab in the Properties.
5. Now we can see the mailboxes which the retention policy applies.
But...How would you export that list or do the same in powershell? I need to get a list of what mailboxes are in a certain retention policy. I tried different formats of get-mailboxstatistics but I never can get the retentionpolicy field to return any results.
Also need to find what mailboxes do not have a retention policy applied.
Thanks for your time.
March 26th, 2012 10:06am
which version of exchange you are running
for exchange 2010 you can use Get-RetentionPolicy -Identity "policy name" | Format-List
Free Windows Admin Tool Kit Click here and download it now
March 26th, 2012 10:48am
Exchange 2010 SP2
That command didn't get the list of what mailboxes are in that particular policy, it only returned and populated the below fields:
RunspaceId :
RetentionId :
RetentionPolicyTagLinks :
AdminDisplayName :
ExchangeVersion :
Name :
DistinguishedName :
Identity :
Guid :
ObjectCategory :
ObjectClass :
WhenChanged :
WhenCreated :
WhenChangedUTC :
WhenCreatedUTC :
OrganizationId :
OriginatingServer :
IsValid :
March 26th, 2012 10:56am
I got what I needed by using the filters in the recipient configuration.
Thanks.
Free Windows Admin Tool Kit Click here and download it now
March 26th, 2012 2:27pm