Commands › Exchange Online

Get-ComplianceCase

Exchange Online ExchangeOnlineManagement Get-*

For more information, see Security & Compliance PowerShell. Use the Get-ComplianceCase cmdlet to different types of compliance cases in the Microsoft Purview compliance portal. See the CaseType parameter for a list of these case types.

Quick start script

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

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

Syntax

Get-ComplianceCase [-Identity] <ComplianceCaseIdParameter>]
 [-CaseType <ComplianceCaseType>]
 [-DomainController <Fqdn>]
 [-RecentOnly]
 [-RoleGroup <String>]
 [<CommonParameters>]

Parameters (5)

ParameterTypeRequiredWhat it controls
-Identity ComplianceCaseIdParameter The Identity parameter specifies the compliance case that you want to view. You can use any value that uniquely identifies the case. For example:
-CaseType ComplianceCaseType The CaseType parameter specifies the type of compliance case that you want to view. Valid values are:
-DomainController Fqdn This parameter is reserved for internal Microsoft use.
-RecentOnly SwitchParameter The RecentOnly switch returns a list of the most recently modified cases of the specified case type. You don't need to specify a value with this switch.
-RoleGroup String The RoleGroup parameter returns a list of compliance cases that the specified role group is a member of. If you don't include the CaseType parameter, the cmdlet returns a list of eDiscovery Standard cases that the...

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