how can I apply a retention policy using security or distribution groups?

William Fahham 1 Reputation point
2021-07-13T17:51:33.293+00:00

Hello!
how to apply my retention policy using distribution or security groups?

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,503 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JeffYang-MSFT 6,241 Reputation points Microsoft Vendor
    2021-07-14T04:03:50.937+00:00

    Hi @William Fahham ,

    If you are an On-Premise user, you could apply a retention policy using distribution groups by running the command below in EMS:

    Get-DistributionGroupMember "<GROUP NAME>" -ResultSize Unlimited | Get-Mailbox | Set-Mailbox -RetentionPolicy "<POLICY NAME>"  
    

    If you are an O365 user, you could use the existed options to Include or Exclude the security or distribution groups you would like, just like below:

    114396-image.png
    114377-image.png

    Hope these could help.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments