Commands › Exchange Online
Suspend-Message
Prevent delivery of a particular message in a queue on a Mailbox server or an Edge Transport server.
Quick start script
# Suspend-Message — 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
Suspend-Message -Identity <MessageIdentity> -Filter <String> | Format-List
# 3. Export for evidence / drift tracking
Suspend-Message | Export-Clixml .\Message-$(Get-Date -Format yyyyMMdd).xml
Syntax — 2 parameter sets
Filter
Suspend-Message -Filter <String>
[-Server <ServerIdParameter>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Identity
Suspend-Message [-Identity] <MessageIdentity>
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Parameters (5)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.