-1

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


jes516
  • 113
  • 6

1 Answers1

1

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?

Joy Zhang
  • 1,057
  • 1
  • 5
  • 5
  • 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 Mar 29 '22 at 13:12
  • Same for other users. I applied the 15 Month policy to a test user and it is back to the original Company MRM Policy. – jes516 Mar 29 '22 at 16:11
  • 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? – Joy Zhang Mar 30 '22 at 07:04
  • 1
    Audit log found it. It was an old on-boarding script when we migrated to Exchange online years ago. Thank you for the assist. – jes516 Mar 31 '22 at 13:57
  • 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:) – Joy Zhang Apr 01 '22 at 07:13