syntax for retention policy RRS feed

  • Question

  • Hi 

    1. I have applied retention policy for a user using EAC. experts provide me with a powershell command which shows me what retention tag and what retention policy i have applied for that user.

    2. If i need to apply retention policy through shell. plz provide me with the syntax.

    3. syntax to get all the retention policies and retention tags.

    Tuesday, May 15, 2018 6:10 PM


  • Hi Roger,

    1. Show the applied retention policy for the user:

    Get-Mailbox UserName |fl name,RetentionPolicy

    Show the retention tags in this policy:

    Get-RetentionPolicy "The policy name got from the command above" |fl name, RetentionPolicyTagLinks

    2. Apply the retention policy via EMS:

    Set-Mailbox User -RetentionPolicy "Policy Name"

    Details see: Apply a retention policy to mailboxes in Exchange 2016

    3. Get all policies and the linked tags:

    Get-RetentionPolicy |fl Name,RetentionPolicyTagLinks

    Get all retention tags:


    Best Regards,
    Niko Cheng

    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact

    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    • Marked as answer by ItsMe-Roger Wednesday, May 16, 2018 11:58 AM
    Wednesday, May 16, 2018 2:37 AM