Disable-MDMTrace
2/9/2009
The Disable-MDMTrace cmdlet 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 -Global [-Components <TraceComponent[]>] [-Guids <Guid[]>] [<CommonParameters>]
Disable-MDMTrace -Local [-Components <TraceComponent[]>] [-Guids <Guid[]>] [<CommonParameters>]
Disable-MDMTrace -Server <ServerParameter[]> [-Components <TraceComponent[]>] [-Guids <Guid[]>] [<CommonParameters>]
Parameters
The following describes the Disable-MDMTrace cmdlet 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 DeviceManagement or Enrollment to disable tracing on all servers that have those server roles. If the value contains a space or other special characters, enclose the string in quotation marks.
- Global
Specifies that tracing is to be stopped on every Mobile Device Manager 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 Everything disables trace logging for all components and closes WPP, allowing you to view the trace file. In this case, if you enable tracing again, a new trace log is started, and 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 MDM Shell prompt, type get-help about_commonparameters.
Input Type
None
Output Type
None
Examples
This Disable-MDMTrace command example disables trace logging on all components of the local server.
C:\PS>Disable-MDMTrace -Local -Components Everything
This Disable-MDMTrace command example disables trace logging for diagnostics on every MDM Device Management Server.
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