The Get-MDMTracecmdlet returns a collection of MDMTraceobjects that represent the currently enabled and active Windows Software Trace Preprocessor (WPP) components.
For a component to be active, it must have a trace provider registered. Therefore, not all enabled components will appear when you call Get-MDMTrace.
Important: |
---|
We recommend that you perform diagnostic tracing only in association with a Microsoft Customer Support Services (CSS) representative. |
Syntax
Get-MDMTrace -Local [<CommonParameters>] Get-MDMTrace -Server <ServerParameter[]> [<CommonParameters>] Get-MDMTrace -Global [<CommonParameters>] |
Parameters
The following describes the Get-MDMTracecmdlet parameters.
- Local
-
Specifies that trace information is to be returned only for the local system.
- Server <ServerParameter[]>
-
Specifies one or more servers for which trace information is to be returned. You can specify individual servers by name, or you can specify DeviceManagementor Enrollmentto return trace information for all servers that have those server roles.
- Global
-
Specifies that trace information is to be returned for every Mobile Device Manager (MDM) Device Management Server and MDM Enrollment Server.
- 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
The Get-MDMTracecmdlet returns a collection of MDMTraceobjects. To see all the properties for this object, at the MDM Shell prompt, type Get-MDMTrace | Get-Member.
Examples
This Get-MDMTracecommand example returns tracing information from the local server.
Copy Code | |
---|---|
C:\PS>Get-MDMTrace -Local |
This Get-MDMTracecommand example returns trace information from every MDM Enrollment Server.
Copy Code | |
---|---|
C:\PS>Get-MDMTrace -Server Enrollment |
Cmdlet Help
To view this information online, at the MDM Shell prompt, type:
get-help Get-MDMTrace -detailed, or get-help Get-MDMTrace -full