|
| 1 | +--- |
| 2 | +external help file: Microsoft.Exchange.TransportMailflow-Help.xml |
| 3 | +online version: https://learn.microsoft.com/powershell/module/exchange/export-contentexplorerdata |
| 4 | +applicable: Security & Compliance |
| 5 | +title: Export-ContentExplorerData |
| 6 | +schema: 2.0.0 |
| 7 | +author: chrisda |
| 8 | +ms.author: chrisda |
| 9 | +ms.reviewer: |
| 10 | +--- |
| 11 | + |
| 12 | +# Export-ContentExplorerData |
| 13 | + |
| 14 | +## SYNOPSIS |
| 15 | +This cmdlet is available only in Security & Compliance PowerShell. For more information, see [Security & Compliance PowerShell](https://learn.microsoft.com/powershell/exchange/scc-powershell). |
| 16 | + |
| 17 | +Use the Export-ContentExplorerData cmdlet to export data classification file details in Microsoft Purview compliance. |
| 18 | + |
| 19 | +For information about the parameter sets in the Syntax section below, see [Exchange cmdlet syntax](https://learn.microsoft.com/powershell/exchange/exchange-cmdlet-syntax). |
| 20 | + |
| 21 | +## SYNTAX |
| 22 | + |
| 23 | +``` |
| 24 | +Export-ContentExplorerData |
| 25 | + [[-PageCookie] <String>] |
| 26 | + [[-PageSize] <Int32>] |
| 27 | + [[-SiteUrl] <String>] |
| 28 | + [[-UserPrincipalName] <String>] |
| 29 | + [-TagName] <String> |
| 30 | + [-TagType] <String> |
| 31 | + [[-Workload] <String>] |
| 32 | + [<CommonParameters>] |
| 33 | +``` |
| 34 | + |
| 35 | +## DESCRIPTION |
| 36 | +The output of this cmdlet contains the following information: |
| 37 | + |
| 38 | +- TotalCount: Aggregate count. If only the TagName and TagType parameters are used, the value is the total aggregate count for that tag. If the Workload parameter is also used, the value is the aggregate count in the workload for that tag. If the UserPrincipalName or SiteUrl parameters are used, the value is the count for that specific folder. |
| 39 | +- MorePagesAvailable: Shows whether there are more records left to export. The value is True or False. |
| 40 | +- RecordsReturned: The number of records returned in the query. |
| 41 | +- PageCookie: Used to get the next set of records when MorePagesAvailable is True. |
| 42 | + |
| 43 | +To use this cmdlet in Security & Compliance PowerShell, you need to be assigned permissions. For more information, see [Permissions in the Microsoft Purview compliance portal](https://learn.microsoft.com/purview/microsoft-365-compliance-center-permissions). |
| 44 | + |
| 45 | +## EXAMPLES |
| 46 | + |
| 47 | +### Example 1 |
| 48 | +```powershell |
| 49 | +Export-ContentExplorerData -TagType SensitiveInformationType -TagName "Credit Card Number" -Workload EXO -UserPrincipalName erika@contoso.onmicrosoft.com |
| 50 | +``` |
| 51 | + |
| 52 | +This example exports records for the specified sensitive info type from Erika's mailbox. |
| 53 | + |
| 54 | +### Example 2 |
| 55 | +```powershell |
| 56 | +Export-ContentExplorerData -TagType SensitiveInformationType -TagName "Credit Card Number" -Workload ODB -SiteUrl https://contoso-my.sharepoint.com/personal/erika_contoso_onmicrosoft_com |
| 57 | +``` |
| 58 | + |
| 59 | +This example exports records for the specified sensitive info type in Erika's OneDrive site. |
| 60 | + |
| 61 | +### Example 3 |
| 62 | +```powershell |
| 63 | +Export-ContentExplorerData -TagType SensitiveInformationType -TagName "All Full Names" |
| 64 | +``` |
| 65 | + |
| 66 | +This example exports records for the specified sensitive info type for all workloads. |
| 67 | + |
| 68 | +## PARAMETERS |
| 69 | + |
| 70 | +### -PageCookie |
| 71 | +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 returned. If you use the PageSize parameter, a maximum of 10000 records can be returned. |
| 72 | + |
| 73 | +```yaml |
| 74 | +Type: String |
| 75 | +Parameter Sets: (All) |
| 76 | +Aliases: |
| 77 | +Applicable: Security & Compliance |
| 78 | + |
| 79 | +Required: False |
| 80 | +Position: 1 |
| 81 | +Default value: None |
| 82 | +Accept pipeline input: False |
| 83 | +Accept wildcard characters: False |
| 84 | +``` |
| 85 | +
|
| 86 | +### -PageSize |
| 87 | +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. |
| 88 | +
|
| 89 | +```yaml |
| 90 | +Type: Int32 |
| 91 | +Parameter Sets: (All) |
| 92 | +Aliases: |
| 93 | +Applicable: Security & Compliance |
| 94 | + |
| 95 | +Required: False |
| 96 | +Position: 2 |
| 97 | +Default value: 0 |
| 98 | +Accept pipeline input: False |
| 99 | +Accept wildcard characters: False |
| 100 | +``` |
| 101 | +
|
| 102 | +### -SiteUrl |
| 103 | +The SiteUrl parameter specifies the site URL to export file details from. |
| 104 | +
|
| 105 | +You use this parameter for SharePoint and OneDrive workloads. |
| 106 | +
|
| 107 | +```yaml |
| 108 | +Type: String |
| 109 | +Parameter Sets: (All) |
| 110 | +Aliases: |
| 111 | +Applicable: Security & Compliance |
| 112 | + |
| 113 | +Required: False |
| 114 | +Position: 3 |
| 115 | +Default value: None |
| 116 | +Accept pipeline input: False |
| 117 | +Accept wildcard characters: False |
| 118 | +``` |
| 119 | +
|
| 120 | +### -TagName |
| 121 | +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. |
| 122 | +
|
| 123 | +```yaml |
| 124 | +Type: String |
| 125 | +Parameter Sets: (All) |
| 126 | +Aliases: |
| 127 | +Applicable: Security & Compliance |
| 128 | + |
| 129 | +Required: True |
| 130 | +Position: 4 |
| 131 | +Default value: None |
| 132 | +Accept pipeline input: False |
| 133 | +Accept wildcard characters: False |
| 134 | +``` |
| 135 | +
|
| 136 | +### -TagType |
| 137 | +The TagType parameter specifies the type of label to export file details from. Valid values are: |
| 138 | +
|
| 139 | +- Retention |
| 140 | +- SensitiveInformationType |
| 141 | +- Sensitivity |
| 142 | +- TrainableClassifier |
| 143 | +
|
| 144 | +```yaml |
| 145 | +Type: String |
| 146 | +Parameter Sets: (All) |
| 147 | +Aliases: |
| 148 | +Applicable: Security & Compliance |
| 149 | + |
| 150 | +Required: True |
| 151 | +Position: 5 |
| 152 | +Default value: None |
| 153 | +Accept pipeline input: False |
| 154 | +Accept wildcard characters: False |
| 155 | +``` |
| 156 | +
|
| 157 | +### -UserPrincipalName |
| 158 | +The UserPrincipalName parameter specifies the user account in UPN format to export message details from. An example UPN value is erika@contoso.onmicrosoft.com. |
| 159 | +
|
| 160 | +You use this parameter for Exchange and Microsoft Teams workloads. |
| 161 | +
|
| 162 | +```yaml |
| 163 | +Type: String |
| 164 | +Parameter Sets: (All) |
| 165 | +Aliases: |
| 166 | +Applicable: Security & Compliance |
| 167 | + |
| 168 | +Required: False |
| 169 | +Position: 6 |
| 170 | +Default value: None |
| 171 | +Accept pipeline input: False |
| 172 | +Accept wildcard characters: False |
| 173 | +``` |
| 174 | +
|
| 175 | +### -Workload |
| 176 | +The Workload parameter specifies the location to export file details from. Valid values are: |
| 177 | +
|
| 178 | +- EXO or Exchange |
| 179 | +- ODB or OneDrive |
| 180 | +- SPO or SharePoint |
| 181 | +- Teams |
| 182 | +
|
| 183 | +```yaml |
| 184 | +Type: String |
| 185 | +Parameter Sets: (All) |
| 186 | +Aliases: |
| 187 | +Applicable: Security & Compliance |
| 188 | + |
| 189 | +Required: False |
| 190 | +Position: 7 |
| 191 | +Default value: None |
| 192 | +Accept pipeline input: False |
| 193 | +Accept wildcard characters: False |
| 194 | +``` |
| 195 | +
|
| 196 | +### CommonParameters |
| 197 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/p/?LinkID=113216). |
| 198 | +
|
| 199 | +## INPUTS |
| 200 | +
|
| 201 | +## OUTPUTS |
| 202 | +
|
| 203 | +## NOTES |
| 204 | +
|
| 205 | +## RELATED LINKS |
0 commit comments