10/17/2008

The Get-MDMInstancecmdlet returns a collection of MDMInstanceobjects that represent the System Center Mobile Device Manager instances in an organization.

You can return a single MDM instance or, if you specify no parameters, return all the instances within the current user forest.

Syntax

Get-MDMInstance [[-Identity] <MDMInstanceId>]
[<CommonParameters>]

Parameters

The following describes the Get-MDMInstancecmdlet parameters.

Identity <MDMInstanceId>

Specifies an MDM instance. This parameter can be an MDMInstancename or friendly name.

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

The Get-MDMInstancecmdlet accepts a string through the pipeline that identifies an MDMInstanceby name or friendly name, or it accepts an object that has the property Name or FriendlyName.

Output Type

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

Examples

This Get-MDMInstancecommand example returns a collection of all the MDM instances in the current user forest.

Copy Code
C:\PS>Get-MDMInstance

This Get-MDMInstancecommand example returns all the MDMInstanceobjects within the domain "Contoso."

Copy Code
C:\PS>Get-MDMInstance | Where-Object {$_.Domain -eq "Contoso"}

Cmdlet Help

To view this information online, at the MDM Shell prompt, type:

get-help Get-MDMInstance -detailed, or get-help Get-MDMInstance -full

See Also