Get-MDMTrace

2/9/2009

The Get-MDMTrace cmdlet returns a collection of MDMTrace objects 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 -Global [<CommonParameters>]

Get-MDMTrace -Local [<CommonParameters>]

Get-MDMTrace -Server <ServerParameter[]> [<CommonParameters>]

Parameters

The following describes the Get-MDMTrace cmdlet 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 DeviceManagement or Enrollment to return trace information for 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 trace information is to be returned for every Mobile Device Manager 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 MDM Shell prompt, type get-help about_commonparameters.

Input Type

None

Output Type

The Get-MDMTrace cmdlet returns a collection of MDMTrace objects. To see all the properties for this object, at the MDM Shell prompt, type Get-MDMTrace | Get-Member.

Examples

This Get-MDMTrace command example returns tracing information from the local server.

C:\PS>Get-MDMTrace -Local

This Get-MDMTrace command example returns trace information from every MDM Enrollment Server.

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

See Also

Reference

Enable-MDMTrace
Disable-MDMTrace