Share via


Get-MDMInstance

2/9/2009

The Get-MDMInstance cmdlet returns a collection of MDMInstance objects 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-MDMInstance cmdlet parameters.

  • Identity <MDMInstanceId>
    Specifies an MDM instance. This parameter can be an MDMInstance name 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-MDMInstance cmdlet accepts a string through the pipeline that identifies an MDMInstance by name or friendly name, or it accepts an object that has the property Name or FriendlyName.

Output Type

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

Examples

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

C:\PS>Get-MDMInstance

This Get-MDMInstance command example returns all the MDMInstance objects within the domain "Contoso."

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

Reference

Get-MDMCurrentInstance
Set-MDMCurrentInstance