Commands › Exchange Online

Export-PurviewConfig

Exchange Online ExchangeOnlineManagement Export-*

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)

ParameterTypeRequiredWhat it controls
-Components MultiValuedProperty yes The Components parameter specifies which Purview components to export diagnostic data for. Valid values are:
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-DomainController Fqdn This parameter is reserved for internal Microsoft use.
-PolicyName String The PolicyName parameter specifies the name of the policy to scope the export to.
-UserPrincipalName SmtpAddress The UserPrincipalName parameter specifies the user principal name (UPN) of the user to scope the export to.
-WhatIf SwitchParameter The WhatIf switch doesn't work in Security & Compliance PowerShell.

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