Retention polices

Roger Roger 6,406 Reputation points
2024-10-08T19:37:41.0166667+00:00

I have three questions related to retention policies.

  1. Under Data Lifecycle Management → Exchange (Legacy) → MRM Retention Policies, I have two policies:

Policy1: This policy includes retention tags for all default folders with a retention period of 6 months. For personal folders, users can choose from the available retention tags.

Policy2: This policy includes retention tags for all default folders with a retention period of 2 years. For personal folders, users can choose from the available retention tags.

Most of my users are assigned Policy1. I want to assign Policy2 to one of my users, let's say user1@contoso.com. In the Exchange Admin Center, I went to Mailbox → selected user1@contoso.com → Mailbox → Retention Policy → Manage Mailbox Policy → Retention Policy and selected Policy2 and saved it. Is this the correct approach?

How can I verify in PowerShell that user1@contoso.com has been assigned Policy2, and how can I check which retention tag is applied to each folder within their mailbox?

  1. I have only a few users assigned to Policy2. How can I find out which mailboxes are assigned Policy2? Please guide me on how to export a list of these mailbox.

3.If at all i dont want any retention policy to be applied on the mailbox. for that mailbox if i select Retention policy to no policy. will any policy overwrite happen how can i check it.

Microsoft Exchange Online
Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,348 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,596 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,683 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,140 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jake Zhang-MSFT 6,700 Reputation points Microsoft Vendor
    2024-10-09T05:55:08.56+00:00

    Hi @Roger Roger ,

    Welcome to the Microsoft Q&A platform!

    Let me answer your questions one by one:

    1. Yes, you are on the right track in the Exchange Admin Center. You have correctly assigned the new retention policy to the user by navigating to Mailbox → Select user1@contoso.com → Mailbox → Retention Policies → Manage Mailbox Policies → Retention Policies and selecting Policy2.
    2. To verify that user1@contoso.com has Policy2 assigned, you can use the following PowerShell command:
    Get-Mailbox -Identity user1@contoso.com | Select-Object Name,RetentionPolicy 
    

    This command will show the retention policy assigned to the specified mailbox.

    To check which retention tag is applied to each folder in their mailbox, you can use:

    Get-MailboxFolderStatistics -Identity user1@contoso.com | Select-Object FolderPath,FolderType,RetentionPolicyTag 
    

    This command will list all folders and their retention tags.

    1. To find out which mailboxes have Policy2 assigned, you can use the following PowerShell command:
    Get-Mailbox -ResultSize Unlimited | Where-Object {$_.RetentionPolicy -eq "Policy2"} | Select-Object Name,RetentionPolicy 
    

    To export this list to a CSV file, you can extend the command as follows:

    Get-Mailbox -ResultSize Unlimited | Where-Object {$_.RetentionPolicy -eq "Policy2"} | Select-Object Name,RetentionPolicy | Export-Csv -Path "C:\Policy2Mailboxes.csv" -NoTypeInformation 
    
    1. If you do not want any retention policy applied to a mailbox, you can set the retention policy to None. Use the following PowerShell command:
    Set-Mailbox -Identity user1@contoso.com -RetentionPolicy $null 
    

    To verify that no retention policy is applied, you can check using the following command:

    Get-Mailbox -Identity user1@contoso.com | Select-Object Name,RetentionPolicy 
    

    This will confirm that the retention policy is set to None.


    Please feel free to contact me for any updates. And if this helps, don't forget to mark it as an answer.

    Best,

    Jake Zhang


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.