Commands › Exchange Online

Invoke-ComplianceSecurityFilterAction

Exchange Online ExchangeOnlineManagement Invoke-*

For more information, see Security & Compliance PowerShell. Use the Invoke-ComplianceSecurityFilterAction cmdlet to view and set compliance boundaries for Microsoft OneDrive sites in cloud-based organizations.

Quick start script

# Invoke-ComplianceSecurityFilterAction — 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-ComplianceSecurityFilterAction -Action <String> -PropertyName <String> -SiteUrl <String> | Format-List

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

Syntax

Invoke-ComplianceSecurityFilterAction [-Action] <String> [[-EmailAddress] <String>] [-PropertyName] <String> [[-PropertyValue] <String>] [-SiteUrl] <String>
 [-Confirm]
 [-WhatIf]
 [<CommonParameters>]

Parameters (7)

ParameterTypeRequiredWhat it controls
-Action String yes The Action parameter specifies the action for the command. Valid values are:
-EmailAddress String The EmailAddress parameter specifies the the affected user mailbox. You can use the following values to uniquely identify the mailbox:
-PropertyName String yes The PropertyName parameter specifies the name of the property of the compliance boundary for the OneDrive site that you want to view or modify. Valid values are:
-PropertyValue String The PropertyValue parameter specifies the value of the PropertyName value when you use the Action parameter value Set to set the compliance boundary of a OneDrive site. If the value contains spaces, enclose the value...
-SiteUrl String yes The SiteUrl parameter specifies the OneDrive site that you want to view or modify. This parameter uses the syntax...
-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.