Commands › Exchange Online
Set-SupervisoryReviewRule
For more information, see Security & Compliance PowerShell. Use the Set-SupervisoryReviewRule cmdlet to modify supervisory review rules in the Microsoft Purview compliance portal.
Quick start script
# Set-SupervisoryReviewRule — 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-SupervisoryReviewRule
$before | Format-List
# 3. Make the change (dry run first)
Set-SupervisoryReviewRule -Identity <ComplianceRuleIdParameter> -WhatIf
Set-SupervisoryReviewRule -Identity <ComplianceRuleIdParameter>
# 4. Verify and diff
$after = Get-SupervisoryReviewRule
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
Set-SupervisoryReviewRule [-Identity] <ComplianceRuleIdParameter>
[-AdvancedRule <String>]
[-CcsiDataModelOperator <String>]
[-Condition <String>]
[-Confirm]
[-ContentContainsSensitiveInformation <PswsHashtable[]>]
[-ContentMatchesDataModel <String>]
[-ContentSources <String[]>]
[-DayXInsights <Boolean>]
[-ExceptIfFrom <MultiValuedProperty>]
[-ExceptIfRecipientDomainIs <MultiValuedProperty>]
[-ExceptIfRevieweeIs <MultiValuedProperty>]
[-ExceptIfSenderDomainIs <MultiValuedProperty>]
[-ExceptIfSentTo <MultiValuedProperty>]
[-ExceptIfSubjectOrBodyContainsWords <MultiValuedProperty>]
[-From <MultiValuedProperty>]
[-IncludeAdaptiveScopes <String[]>]
[-InPurviewFilter <String>]
[-Ocr <Boolean>]
[-PolicyRBACScopes <MultiValuedProperty>]
[-SamplingRate <Int32>]
[-SentTo <MultiValuedProperty>]
[-WhatIf]
[<CommonParameters>]
Parameters (23)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.