The Disable-MDMTracecmdlet disables Windows Software Trace Preprocessor (WPP) logging for one or more components.
Important: |
---|
We recommend that you perform diagnostic tracing only in association with a Microsoft Customer Support Services (CSS) representative. |
Syntax
Disable-MDMTrace -Local [-Components <TraceComponent[]>] [-Guids <Guid[]>] [<CommonParameters>] Disable-MDMTrace -Server <ServerParameter[]> [-Components <TraceComponent[]>] [-Guids <Guid[]>] [<CommonParameters>] Disable-MDMTrace -Global [-Components <TraceComponent[]>] [-Guids <Guid[]>] [<CommonParameters>] |
Parameters
The following describes the Disable-MDMTracecmdlet parameters.
- Local
-
Specifies that tracing on the local system is to be stopped.
- Server <ServerParameter[]>
-
Specifies one or more servers on which tracing is to be stopped. You can specify individual servers by name, or you can specify DeviceManagementor Enrollmentto disable tracing on all servers that have those server roles.
- Global
-
Specifies that tracing is to be stopped on every Mobile Device Manager (MDM) Device Management Server and MDM Enrollment Server.
- Components <TraceComponent[]>
-
Specifies one or more components for which trace logging is disabled. You can enter multiple components, separated by commas. Specifying the value Everythingdisables trace logging for all components. In this case, if you enable tracing again, the trace log file for the previously completed session is overwritten.
- Guids <Guid[]>
-
Specifies the GUID of a third-party trace provider for which you want to disable log message tracing. You can enter multiple values, separated by commas.
- CommonParameters
-
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. For more information, at the Mobile Device Manager (MDM) Shell prompt, type get-help about_commonparameters.
Input Type
None
Output Type
None
Examples
This Disable-MDMTracecommand example disables trace logging on all components of the local server.
Copy Code | |
---|---|
C:\PS>Disable-MDMTrace -Local -Components Everything |
This Disable-MDMTracecommand example disables trace logging for diagnostics on every MDM Device Management Server.
Copy Code | |
---|---|
C:\PS>Disable-MDMTrace -Server DeviceManagement -Components Diagnostics |
Cmdlet Help
To view this information online, at the MDM Shell prompt, type:
get-help Disable-MDMTrace -detailed, or get-help Disable-MDMTrace -full