Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions exchange/exchange-ps/exchange/Export-ContentExplorerData.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ The output of this cmdlet contains the following information:
- RecordsReturned: The number of records returned in the query.
- PageCookie: Used to get the next set of records when MorePagesAvailable is True.

The following list describes best practices for scripts using this cmdlet:

- We recommend not using a single script to export multiple SITs/Labels. Instead, create a script for one SIT/Label, and then re-use the same script for each SIT/Label in each workload as required.
- When retrying the script, make sure to reconnect to the session first. The session's token expires after about an hour, which can cause the cmdlet to fail. To fix this issue, reconnect to the session before retrying the script. If the script fails, restart it using the last page cookie returned to continue the export from where it left off.

> [!TIP]
> To support unattended scripts that run for a long time, you can use [certificate-based authentication (CBA)](https://learn.microsoft.com/powershell/exchange/app-only-auth-powershell-v2).

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).

## EXAMPLES
Expand Down Expand Up @@ -90,7 +98,15 @@ Accept wildcard characters: False
```

### -Aggregate
{{ Fill Aggregate Description }}
The Aggregate parameter switch returns the folder level aggregated numbers instead of returning details at the item level. You don't need to specify a value with this switch.

Using this switch significantly reduces the export time. To download the items in a folder, run this cmdlet for specific folders.

When you use this switch with the TagName, TagType and Workload parameters, the command returns the following information:

- SiteUlrs: OneDrive and SharePoint.
- UPNs: Exchange Online and Teams.
- The count of items stamped with that tag.

```yaml
Type: SwitchParameter
Expand Down Expand Up @@ -124,6 +140,8 @@ Accept wildcard characters: False
### -PageSize
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.

**Note**: In empty folders or folders with few files, this parameter can cause the command to run for a long time as it tries to get the PageSize count of the results. To prevent this issue, the command returns data from 5 folders or the number of records specified by the PageSize parameter, whichever completes first. For example, if there are 10 folders with 1 record each, the command returns 5 records of the top 5 folders. In the next execution using page cookie, it returns 5 records from the remaining 5 folders, even if the PageSize value is 10.

```yaml
Type: Int32
Parameter Sets: (All)
Expand Down Expand Up @@ -210,8 +228,6 @@ Accept pipeline input: False
Accept wildcard characters: False
```



### CommonParameters
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).

Expand Down
Loading