Those seem to be holds corresponding to Retention policies in the Compliance center, simply exclude the mailbox therein: https://learn.microsoft.com/en-us/purview/create-retention-policies?tabs=other-retention
How to disable In-Place Hold in ExchangeOnline?
Hello,
I have Archive Online turned on few Exchange mailboxes. I want to disable one of them but I can't. When I try to do this by UI I have a meaning-nothing error:
So I tried doing it via PowerShell and this fortunately gives me an actual error:
So my question is - how to disable InPlaceHold? Using UI and using PowerShell.
Microsoft documentation is outdated - it refers to this feature in EAC in which it is retired, so documentation is useless.
https://learn.microsoft.com/en-us/exchange/security-and-compliance/create-or-remove-in-place-holds
I run a PowerShell to check some ids of those InPlace-Holds but I couldn't find any PowerShell that works to actually delete it.
3 answers
Sort by: Most helpful
-
-
Jayce Yang-MSFT 1,246 Reputation points Microsoft Vendor
2024-03-13T06:55:34.9266667+00:00 You could use Invoke-HoldRemovalAction in Security & Compliance PowerShell:
Invoke-HoldRemovalAction (ExchangePowerShell) | Microsoft Learn
Invoke-HoldRemovalAction -Action RemoveHold -ExchangeLocation KittyPetersen@contoso.onmicrosoft.com -HoldId "UniHecbf89df-74fc-444a-a2dc-c0756c7d3503" -force
I have test in my M365, it works fine.
Or you could Use the GUID to identify the hold:
$CaseHold = Get-CaseHoldPolicy <hold GUID without prefix>
Get-ComplianceCase $CaseHold.CaseId | FL Name
The second command displays the name of the eDiscovery case the hold is associated with. And you could modify/remove it in Microsoft Purview directly.
How to identify the hold on an Exchange Online mailbox | Microsoft Learn
-
Jayce Yang-MSFT 1,246 Reputation points Microsoft Vendor
2024-03-28T09:08:49.5+00:00 Great to know that the issue has already been resolved and thanks for sharing the solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution in case you'd like to "Accept" the answer : )
Issue Symptom:
How to disable In-Place Hold in ExchangeOnline?
Can not disable the mailbox with "-mbx" hold**.** His mailbox is excluded from organization hold, because it has prefix "-mbx".
Resolution:
The problem is that one account have ComplianceTagHoldApplied set to True and I can't get rid of that and this is causing the problem. When accounts I want to disable didn't have it set to True I can exclude them for policies and disable archive w/o problems.