Commands › Exchange Online
Invoke-HoldRemovalAction
For more information, see Security & Compliance PowerShell. Use the Invoke-HoldRemovalAction cmdlet to view and remove holds on mailboxes and SharePoint sites. You can also see holds that were previously removed by using this cmdlet.
Quick start script
# Invoke-HoldRemovalAction — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org
# 2. Run and inspect
Invoke-HoldRemovalAction -Action <HoldRemovalActionType> | Format-List
# 3. Export for evidence / drift tracking
Invoke-HoldRemovalAction | Export-Clixml .\HoldRemovalAction-$(Get-Date -Format yyyyMMdd).xml
Syntax
Invoke-HoldRemovalAction -Action <HoldRemovalActionType>
[-Confirm]
[-ExchangeLocation <String>]
[-Force]
[-HoldId <String>]
[-SharePointLocation <String>]
[-WhatIf]
[<CommonParameters>]
Parameters (7)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.