Compliance Problems

Assign a Retention Policy to One Outlook Folder with PowerShell

Muhammad TalhaMuhammad Talha Nov 14, 2026 868 views

Question details

Determine whether PowerShell can apply an automatic deletion policy to a single Outlook folder.

Can You Assign a Retention Policy to One Outlook Folder with PowerShell?
Product
Microsoft Outlook and Microsoft 365 retention
Device & OS
not provided
Scenario
An administrator wants to delete items from one mailbox folder after a short retention period without applying the same rule to the entire mailbox.
Observed behavior
The goal is folder-specific deletion, but Microsoft Purview retention policies generally target mailbox locations rather than individual Outlook folders.
Before you start

Identify the mailbox and folder, and check whether you are working with a Microsoft Purview retention policy or an Exchange messaging records management (MRM) policy. You will need appropriate Exchange administrative permissions to inspect or change MRM policies.

Solution 1Recommended

Use an Exchange personal retention tag for the folder

Use a personal tag when folder-level tagging is available and a mailbox-level policy alone is too broad.

Exchange MRM policies are assigned to mailboxes, but they can include personal tags that users apply to individual folders in supported Outlook configurations. This is not the same as assigning an entire retention policy directly to a folder with PowerShell.

A one-day retention age does not guarantee deletion exactly 24 hours after an item arrives. Processing by the Managed Folder Assistant is asynchronous, and retention age depends on the item and tag settings.

1
Inspect the mailbox policy

Connect to Exchange Online PowerShell with Connect-ExchangeOnline, then run Get-Mailbox -Identity user@example.com | Format-List RetentionPolicy. Replace the address with the target mailbox.

2
Review available tags

Run Get-RetentionPolicy -Identity "Policy Name" | Format-List RetentionPolicyTagLinks and Get-RetentionPolicyTag to see the tags in the assigned policy. Replace the policy name with the value returned for the mailbox.

3
Configure a personal tag

If no suitable tag exists, use Exchange Online PowerShell to create a personal retention tag with New-RetentionPolicyTag and add it to the mailbox's existing MRM policy with Set-RetentionPolicy. Review its retention age and deletion action before applying it; preserve the policy's existing tag links.

4
Apply the tag to the folder

In a supported version of Outlook, right-click the target folder and look for Assign Policy, or open Properties and select the Policy tab. Choose the personal tag and save the change.

Use an Exchange personal retention tag for the folder
Check availability and timing: The folder policy controls and available tags depend on the Outlook client and mailbox configuration. Deletion can also be affected by holds and other retention requirements.
Free Microsoft Office alternative

Work with Office documents in WPS Office

WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations in a familiar interface. Its Microsoft Office format compatibility helps you move existing files without changing your workflow. It does not manage Outlook or Microsoft 365 retention policies.

Review and edit retention-policy documentation in a familiar document interfaceOpen and save common Microsoft Office formats, including DOCX, XLSX, and PPTXUse a free, lightweight suite for everyday office workBring existing Office files into a familiar workspace
microsoft office alternative - wps office

Frequently Asked Questions

Can PowerShell assign an entire retention policy directly to one Outlook folder?

Generally, no. Microsoft Purview retention policies target mailbox locations, and Exchange MRM policies are assigned to mailboxes. For folder-specific MRM behavior, configure a personal tag in the mailbox policy and apply that tag to the folder in a supported Outlook client.

Can a mailbox have more than one retention policy?

A mailbox can have one assigned Exchange MRM retention policy at a time. Multiple Microsoft Purview retention policies can also apply to the mailbox, so check both systems when reviewing retention behavior.

Will a one-day retention tag delete messages exactly 24 hours later?

No exact 24-hour deletion time is guaranteed. Exchange processes retention asynchronously through the Managed Folder Assistant, and the retention age depends on the item and tag settings.

Where do I apply a personal retention tag in Outlook?

In a supported Outlook client, right-click the folder and look for Assign Policy, or open the folder's Properties and select the Policy tab. Available options depend on the client and mailbox configuration.