Score:-1

Why is exchange custom retention policy changing back to previous policy

nr flag

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


Score:1
us flag

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?

jes516 avatar
nr flag
Hi Joy, I tried running Start-ManagedFolderAssistant along with a Compliance search (to query all emails older than 15 months) and running the action to softdelete. The mailbox is currently full. Could that be the reason why the new retention policy or compliance search + action is not working?
jes516 avatar
nr flag
Same for other users. I applied the 15 Month policy to a test user and it is back to the original Company MRM Policy.
Joy Zhang avatar
us flag
Check the admin audit log to see if there is anyone change the retention policy back. https://docs.microsoft.com/en-us/exchange/policy-and-compliance/admin-audit-logging/admin-audit-logging?view=exchserver-2019 In addition, Is there any scripts running automatically which maybe cause this issue?
jes516 avatar
nr flag
Audit log found it. It was an old on-boarding script when we migrated to Exchange online years ago. Thank you for the assist.
Joy Zhang avatar
us flag
Glad you have found the root cause, you could mark the helpful reply as best answer or share your advice, your action will be helpful to others who encounter the same issue:)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.