Skip to content

Commit 9d9cc29

Browse files
authored
Merge pull request MicrosoftDocs#12438 from mayanksahu11/patch-5
Update Export-ContentExplorerData.md
2 parents 15da6bd + 5053830 commit 9d9cc29

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

exchange/exchange-ps/exchange/Export-ContentExplorerData.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ The output of this cmdlet contains the following information:
4141
- RecordsReturned: The number of records returned in the query.
4242
- PageCookie: Used to get the next set of records when MorePagesAvailable is True.
4343

44+
The following list describes best practices for scripts using this cmdlet:
45+
46+
- 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.
47+
- 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.
48+
49+
> [!TIP]
50+
> 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).
51+
4452
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).
4553

4654
## EXAMPLES
@@ -90,7 +98,15 @@ Accept wildcard characters: False
9098
```
9199
92100
### -Aggregate
93-
{{ Fill Aggregate Description }}
101+
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.
102+
103+
Using this switch significantly reduces the export time. To download the items in a folder, run this cmdlet for specific folders.
104+
105+
When you use this switch with the TagName, TagType and Workload parameters, the command returns the following information:
106+
107+
- SiteUlrs: OneDrive and SharePoint.
108+
- UPNs: Exchange Online and Teams.
109+
- The count of items stamped with that tag.
94110
95111
```yaml
96112
Type: SwitchParameter
@@ -124,6 +140,8 @@ Accept wildcard characters: False
124140
### -PageSize
125141
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.
126142
143+
**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.
144+
127145
```yaml
128146
Type: Int32
129147
Parameter Sets: (All)
@@ -210,8 +228,6 @@ Accept pipeline input: False
210228
Accept wildcard characters: False
211229
```
212230
213-
214-
215231
### CommonParameters
216232
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).
217233

0 commit comments

Comments
 (0)