Commands › Exchange Online

Get-ComplianceCaseMember

Exchange Online ExchangeOnlineManagement Get-*

For more information, see Security & Compliance PowerShell. Use the Get-ComplianceCaseMember cmdlet to view the members of eDiscovery cases in the Microsoft Purview compliance portal.

Quick start script

# Get-ComplianceCaseMember — 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-ComplianceCaseMember -Case <String> | Format-List

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

Syntax — 2 parameter sets

Identity

Get-ComplianceCaseMember -Case <String>
 [-DomainController <Fqdn>]
 [-ResultSize <Unlimited>]
 [-ShowCaseAdmin]
 [<CommonParameters>]

AllCases

Get-ComplianceCaseMember
 [-DomainController <Fqdn>]
 [-ResultSize <Unlimited>]
 [<CommonParameters>]

Parameters (4)

ParameterTypeRequiredWhat it controls
-Case String yes The Case parameter specifies the name of the eDiscovery case that you want to view. If the value contains spaces, enclose the value in quotation marks (").
-DomainController Fqdn This parameter is reserved for internal Microsoft use.
-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.
-ShowCaseAdmin SwitchParameter The ShowCaseAdmin switch specifies whether to return the eDiscovery case admin in the results. You don't need to specify a value with this switch.

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