Get-MDMCurrentInstance

2/9/2009

The Get-MDMCurrentInstance cmdlet returns an MDMInstance object 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-MDMCurrentInstance cmdlet.

Syntax

Get-MDMCurrentInstance [<CommonParameters>]

Parameters

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

Examples

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

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

Reference

Set-MDMCurrentInstance
Get-MDMInstance