Check the audit log, it's likely being overridden by some scheduled task/script you have.
Why is exchange custom retention policy changing back to previous policy
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@domain.com"
Powershell>
Powershell>
Powershell>
Powershell>Get-MailboxFolderStatistics "email@domain.com" -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@domain.com" -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
2 answers
Sort by: Most helpful
-
-
Bruce Jing-MSFT 2,910 Reputation points Microsoft Vendor
2024-07-25T08:24:09.2633333+00:00 Hi, @TomCruise-7376
Thanks for posting your question in the Microsoft Q&A forum.
Could you try to assign the retention policy in EAC and check if this issue continues?
Running Start-ManagedFolderAssistant after you assign the retention policy to users. Then confirm if the issue still persists.
In addition, does this issue occur to all users or the specific user?