How to View What Retention Policies Are Assigned to Database or User
I think Get-Mailbox username | format-list will show me what, if any, retention policies are applied on a user's mailbox: there is a RetentionPolicy value.
But how would I view what retention polices are set at the database level? For example, if I set a policy with:
Get-Mailbox –Database “DatabaseName” | Set-Mailbox –RetentionPolicy “AllUsersPolicy”
Where would I go to see that the AllUsersPolicy is being applied? I tried Get-Mailboxdatabase, but that didn't work.
I'm also trying get-mailbox -database databasename, but it returns a ton of info. Any way to tell it just give me a RetentionPolicy value, if there is one?
Thanks
December 9th, 2010 4:49pm
Hi,
Based on my test, the command you provided will set the “AllUserPolicy” retention policy to all mailboxes in the database, not get the list which retention
policy is assigned to a user in the database.
If you want to view which retention policy is assigned to a user, please refer to the steps below,
1.
Open the
Exchange Management Console windows.
2.
Navigate to the
Recipient Configuration and click Mailbox.
3.
Select the user in the middle panel.
4.
In the
Mailbox Settings tab of the Properties.
5.
Select
Messaging Records Management and then click
Properties.
6.
And now we can see which retention policy is assigned to a specific user.
In addition, mailboxes can only be assigned one retention policy at a time.
If you want to view the mailboxes which this retention policy applies, please follow the steps below,
1.
Open the
Exchange Management Console windows.
2.
Navigate to the
Organization Configuration and click Mailbox.
3.
Select the retention policy in the Retention Policies tab.
4.
Choose
Mailboxes tab in the Properties.
5.
Now we can see the mailboxes which the retention policy applies.
Best regards,
Serena
Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
December 13th, 2010 6:11am