Commands › Exchange Online
Check-PurviewConfig
For more information, see Security & Compliance PowerShell. Use the Check-PurviewConfig cmdlet to validate and review your organization's configuration settings in Microsoft Purview.
Quick start script
# Check-PurviewConfig — 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
Check-PurviewConfig | Format-List
# 3. Export for evidence / drift tracking
Check-PurviewConfig | Export-Clixml .\PurviewConfig-$(Get-Date -Format yyyyMMdd).xml
Syntax
Check-PurviewConfig
[[-CaseHoldPolicyNameOrId] <String>]
[[-CaseId] <String>]
[[-Component] <PurviewConfigComponent>]
[-Confirm]
[[-DateTimeUTC] <String>]
[[-DeviceName] <String>]
[[-File] <String>]
[[-FileAsBytes] <Byte[]>]
[[-IncidentId] <String>]
[[-ItemId] <String>]
[[-MessageId] <String>]
[[-Organization] <OrganizationIdParameter>]
[[-PolicyName] <String>]
[[-RecipientAddress] SmtpAddress>]
[[-RecordId] <String>]
[[-RuleName] <String>]
[[-SenderAddress] <SmtpAddress>]
[[-SharepointItemUniqueId] <String>]
[[-SharepointSiteId] <String>]
[[-SiteUrl] <String>]
[[-SitIdentity] <String>]
[[-TestCases] <String[]>]
[[-Theme] <PurviewConfigTheme>]
[[-UserPrincipalName] <SmtpAddress>]
[-WhatIf]
[[-Workload] <String>]
[<CommonParameters>]
Parameters (26)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.