Place a mailbox on retention hold
Placing a mailbox on retention hold suspends the processing of an MRM retention policy by the Managed Folder Assistant for that mailbox. Retention hold is designed for situations such as a user being on vacation or away temporarily.
During retention hold, users can log on to their mailbox and change or delete items. When you perform a mailbox search, deleted items that are past the deleted item retention period aren't returned in search results. To make sure items changed or deleted by users are preserved in legal hold scenarios, you must place a mailbox on legal hold.
Set-Mailbox "Mail User" -RetentionHoldEnabled $true/$false
Note: Use true and false for enabling and disabling retention hold
To use Managed Folder Assistant on mailbox with hold enabled,
Set-Mailbox mailuser@domain.com -ElcProcessingDisabled $false
Start-ManagedFolderAssistant -Identity mailuser@domain.com
Move emails to archive through retention policy
Follow the below command in exchange online PowerShell and run the below command:
New-RetentionPolicyTag -Name <Name of RPT> -Type All -AgeLimitForRetention 365 -RetentionAction MoveToArchive
New-RetentionPolicy "Policy name" -RetentionPolicyTagLinks "tag name"
Set-Mailbox -Identity <id> -RetentionPolicy "Policy name"
Also please run the MRM: Start-ManagedFolderAssistant -Identity "email id"
To move the items to archive folder in exchange online powershell.
Set-Mailbox mailuser@domain.com -ElcProcessingDisabled $false
Start-ManagedFolderAssistant -Identity mailuser@domain.com
Microsoft Reference: https://docs.microsoft.com/en-us/exchange/security-and-compliance/messaging-records-management/mailbox-retention-hold
Comments
0 comments
Please sign in to leave a comment.