How to disable In-Place Hold in ExchangeOnline?

adv_kd 60 Reputation points
2024-03-12T07:16:41.2766667+00:00

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:
User's image

So I tried doing it via PowerShell and this fortunately gives me an actual error:
User's image 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. Dull
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.
User's image

Microsoft Exchange Online
Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
932 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Vasil Michev 95,341 Reputation points MVP
    2024-03-13T04:08:51.66+00:00

    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


  2. 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


  3. 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.

    0 comments No comments