Commands › Exchange Online

Export-ContentExplorerData

Exchange Online ExchangeOnlineManagement Export-*

For more information, see Security & Compliance PowerShell. Use the Export-ContentExplorerData cmdlet to export data classification file details in Microsoft Purview compliance.

Quick start script

# Export-ContentExplorerData — 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-ContentExplorerData -TagType <String> -TagName <String> | Format-List

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

Syntax

Export-ContentExplorerData [-TagName] <String> [-TagType] <String>
 [-Aggregate]
 [[-ConfidenceLevel] <String>]
 [[-PageCookie] <String>]
 [[-PageSize] <Int32>]
 [[-SiteUrl] <String>]
 [[-UserPrincipalName] <String>]
 [[-Workload] <String>]
 [<CommonParameters>]

Parameters (9)

ParameterTypeRequiredWhat it controls
-TagType String yes The TagType parameter specifies the type of label to export file details from. Valid values are:
-Aggregate SwitchParameter **Note:** This parameter is currently in Private Preview, isn't available in all organizations, and is subject to change.
-ConfidenceLevel String The ConfidenceLevel parameter specifies the confidence level of the match for the file details to export. Valid values are:
-PageCookie String The PageCookie parameter specifies whether to get more data when the value of the MorePagesAvailable property in the command output is True. If you don't use the PageSize parameter, a maximum of 100 records are...
-PageSize Int32 The PageSize parameter specifies the maximum number of records to return in a single query. Valid input for this parameter is an integer between 1 and 10000. The default value is 100.
-SiteUrl String The SiteUrl parameter specifies the site URL to export file details from.
-TagName String yes The TagName parameter specifies the name of the label to export file details from. If the value contains spaces, enclose the value in quotation marks.
-UserPrincipalName String The UserPrincipalName parameter specifies the user account in UPN format to export message details from. An example UPN value is erika@contoso.onmicrosoft.com.
-Workload String The Workload parameter specifies the location to export file details from. Valid values are:

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