Commands › Exchange Online

Cancel-SensitiveInformationScan

Exchange Online ExchangeOnlineManagement Cancel-*

For more information, see Security & Compliance PowerShell. Use the Cancel-SensitiveInformationScan cmdlet to cancel sensitive information scans.

Quick start script

# Cancel-SensitiveInformationScan — 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
Cancel-SensitiveInformationScan -Identity <PolicyIdParameter> | Format-List

# 3. Export for evidence / drift tracking
Cancel-SensitiveInformationScan | Export-Clixml .\SensitiveInformationScan-$(Get-Date -Format yyyyMMdd).xml

Syntax

Cancel-SensitiveInformationScan [-Identity] <PolicyIdParameter>
 [-Confirm]
 [-WhatIf]
 [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-Identity PolicyIdParameter yes The Identity parameter specifies the sensitive information scan that you want to cancel. You can use any value that uniquely identifies the scan. For example:
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-WhatIf SwitchParameter The WhatIf switch doesn't work in Security & Compliance PowerShell.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.