Commands › Exchange Online
Disable-MailboxQuarantine
Release quarantined mailboxes.
Quick start script
# Disable-MailboxQuarantine — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org
# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-MailboxQuarantine
$before | Format-List
# 3. Make the change (dry run first)
Disable-MailboxQuarantine -Identity <GeneralMailboxIdParameter> -Database <DatabaseIdParameter> -IncludeAllDatabases <SwitchParameter> -WhatIf
Disable-MailboxQuarantine -Identity <GeneralMailboxIdParameter> -Database <DatabaseIdParameter> -IncludeAllDatabases <SwitchParameter>
# 4. Verify and diff
$after = Get-MailboxQuarantine
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax — 5 parameter sets
MailboxIdentity
Disable-MailboxQuarantine [-Identity] <GeneralMailboxIdParameter>
[-Confirm]
[-WhatIf]
[<CommonParameters>]
MailboxOrMailUserIdentity
Disable-MailboxQuarantine [-Identity] <GeneralMailboxOrMailUserIdParameter>
[-IncludePassive]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
StoreMailboxIdentity
Disable-MailboxQuarantine -Database <DatabaseIdParameter> -StoreMailboxIdentity <StoreMailboxIdParameter>
[-IncludePassive]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
IncludeAllMailboxes
Disable-MailboxQuarantine -Database <DatabaseIdParameter>
[-IncludeAllMailboxes]
[-IncludePassive]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
1 more parameter sets — see the parameter table below.
Parameters (9)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.