10/17/2008

The Get-MDMCurrentInstancecmdlet returns an MDMInstanceobject that represents the System Center Mobile Device Manager instance that the current MDM Shell is managing.

You use MDM Shell cmdlets to manage services and devices within one MDM instance at a time. You can change the MDM instance that the current MDM Shell is managing by using the Set-MDMCurrentInstancecmdlet.

Syntax

Get-MDMCurrentInstance [<CommonParameters>]

Parameters

The following describes the Get-MDMCurrentInstancecmdlet parameters.

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-MDMCurrentInstancecmdlet returns an MDMInstanceobject. To see all the properties for this object, at the MDM Shell prompt, type Get-MDMCurrentInstance | Get-Member.

Examples

This Get-MDMCurrentInstancecommand example returns the MDM instance that the current MDM Shell is managing.

Copy Code
C:\PS>Get-MDMCurrentInstance

Cmdlet Help

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

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

See Also