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.


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


The following describes the Get-MDMInstancecmdlet parameters.

Identity <MDMInstanceId>

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


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.


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

Copy Code

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