-
Notifications
You must be signed in to change notification settings - Fork 107
Export Diagnostic Data
Yorick Kuijs edited this page Oct 1, 2021
·
3 revisions
If you want to troubleshoot an issue, having some logging or troubleshooting information available is very useful. Especially when you ask someone else for assistance. That is why SharePointDsc has a cmdlet available that is able to export several pieces of information:
- DSC Verbose logs
- SPDSC Event log
- PowerShell version
- Operating System version
- LCM configuration
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
ExportFilePath | Mandatory | String | Path where to export the diagnostic data to | |
NumberOfDays | Optional | UInt | The number of days to export the data of (Default = 7) | |
Anonymize | Optional | Switch | Specify to anonymize the exported data | |
Server | Mandatory | String | Specifies the server name to replace during anonimization | |
Domain | Mandatory | Switch | Specifies the domain name to replace during anonimization | |
Url | Mandatory | Switch | Specifies the url to replace during anonimization |
Export diagnostic info to C:\Output
Export-SPDscDiagnosticData -ExportFilePath 'C:\Output'
Export diagnostic info of the last 14 days to C:\Output
Export-SPDscDiagnosticData -ExportFilePath 'C:\Output' -NumberOfDays 14
Export anonymized diagnostic info to C:\Output
Export-SPDscDiagnosticData -ExportFilePath 'C:\Output' -Anonymize -Server 'server1' -Domain 'contoso.com' -Url 'https://sharepoint.contoso.com'
- Home
- Getting Started
- Pre-requisites
- Installing the module
- Exporting SharePoint Configuration
- Creating Configuration Files
- Pre-created Examples
- Creating an Azure development environment
- Understanding Resources & Syntax
- Remote PowerShell Authentication
- Contributing to SharePointDsc
- Other useful modules for SharePoint DSC configurations