Commands › Exchange Online

Get-ComplianceSearchAction

Exchange Online ExchangeOnlineManagement Get-*

View information about compliance search actions.

Quick start script

# Get-ComplianceSearchAction — 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
Get-ComplianceSearchAction | Format-List

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

Syntax — 4 parameter sets

Identity

Get-ComplianceSearchAction [[-Identity] <ComplianceSearchActionIdParameter>]
 [-Case <String>]
 [-Details]
 [-DomainController <Fqdn>]
 [-IncludeCredential]
 [-Organization <OrganizationIdParameter>]
 [-ResultSize <Unlimited>]
 [<CommonParameters>]

Preview

Get-ComplianceSearchAction [-Preview]
 [-Case <String>]
 [-Details]
 [-DomainController <Fqdn>]
 [-IncludeCredential]
 [-Organization <OrganizationIdParameter>]
 [-ResultSize <Unlimited>]
 [<CommonParameters>]

Purge

Get-ComplianceSearchAction [-Purge]
 [-Case <String>]
 [-Details]
 [-DomainController <Fqdn>]
 [-IncludeCredential]
 [-Organization <OrganizationIdParameter>]
 [-ResultSize <Unlimited>]
 [<CommonParameters>]

Export

Get-ComplianceSearchAction [-Export]
 [-Case <String>]
 [-Details]
 [-DomainController <Fqdn>]
 [-IncludeCredential]
 [-Organization <OrganizationIdParameter>]
 [-ResultSize <Unlimited>]
 [<CommonParameters>]

Parameters (10)

ParameterTypeRequiredWhat it controls
-Identity ComplianceSearchActionIdParameter The Identity parameter specifies the compliance search action that you want to view. You can use any value that uniquely identifies the compliance search action. For example:
-Case String This parameter is available only in the cloud-based service.
-Details SwitchParameter The Details switch specifies whether to include detailed information in the results. You don't need to specify a value with this switch.
-DomainController Fqdn This parameter is functional only in on-premises Exchange.
-Export SwitchParameter **Note**: This parameter is functional only in on-premises Exchange. For more information, see [May 2025 changes to Microsoft Purview...
-IncludeCredential SwitchParameter The IncludeCredential switch specifies whether to include the credential in the results. You don't need to specify a value with this switch.
-Organization OrganizationIdParameter This parameter is available only in the cloud-based service.
-Preview SwitchParameter The Preview switch filters the results by Preview compliance search actions. You don't need to specify a value with this switch.
-Purge SwitchParameter **Note**: In Security & Compliance PowerShell, this parameter is available only in the Search and Purge role. By default, this role is assigned only to the Organization Management and Data Investigator role groups.
-ResultSize Unlimited The ResultSize parameter specifies the maximum number of results to return. If you want to return all requests that match the query, use unlimited for the value of this parameter. The default value is 1000.

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