I setup a custom retention policy, however after an hour or so, the retention policy is changing back to the previous policy. Any idea why this could happen? I have set the retention policy a few times via Powershell and it keeps reverting back.
- I should add that the mailbox is currently full which is why I am applying a new policy to make space. Mailbox is currently unusable.
Custom:
Name RetentionPolicyTagLinks
---- -----------------------
15 Month Delete {15 Month Delete - All, Junk Email - 7 Day, Deleted Items - 30 Day}
Reverting back to:
Name RetentionPolicyTagLinks
---- -----------------------
Company MRM Policy {1 Year Delete}
Tried to manually force policy onto mailbox
Powershell>Start-ManagedFolderAssistant -Identity "[email protected]"
Powershell>
Powershell>
Powershell>
Powershell>Get-MailboxFolderStatistics "[email protected]" -FolderScope Inbox | Format-Table Name,FolderPath,ItemsInFolder,FolderAndSubfolderSize
Name FolderPath ItemsInFolder FolderAndSubfolderSize
---- ---------- ------------- ----------------------
Inbox /Inbox 177017 84.44 GB (90,667,087,358 bytes)
....
Also tried using compliance search + action
Powershell>New-ComplianceSearch -Name "Remove older than 15 month messages" -ExchangeLocation "[email protected]" -ContentMatchQuery "(Received <= $((get-date).AddMonths(-15).ToString("MM/dd/yyy")))"
Powershell>New-ComplianceSearchAction -SearchName "Remove older than 15 month messages" -Purge -PurgeType SoftDelete
Confirm
Are you sure you want to perform this action?
This operation will make message items meeting the criteria of the compliance search "Remove older than 15 month messages" completely inaccessible to users.
is no automatic method to undo the removal of these message items.
[Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): A
Name SearchName Action RunBy JobEndTime Status
---- ---------- ------ ----- ---------- ------
Remove older than 15 month messages_Purge Remove older than 15 month messages Purge adminuser Starting