Commands › Exchange Online
Export-PurviewConfig
For more information, see Security & Compliance PowerShell. Use the Export-PurviewConfig cmdlet to export Microsoft Purview diagnostic configuration data for your organization. The exported data is returned as a compressed ZIP file (byte array) containing component-specific diagnostic information.
Quick start script
# Export-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
Export-PurviewConfig -Components <MultiValuedProperty> | Format-List
# 3. Export for evidence / drift tracking
Export-PurviewConfig | Export-Clixml .\PurviewConfig-$(Get-Date -Format yyyyMMdd).xml
Syntax
Export-PurviewConfig -Components <MultiValuedProperty>
[-Confirm]
[[-DomainController] <Fqdn>]
[[-PolicyName <String>]]
[[-UserPrincipalName <SmtpAddress>]]
[-WhatIf]
[<CommonParameters>]
Parameters (6)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.