Set-MDMCurrentInstance

2/9/2009

The Set-MDMCurrentInstance cmdlet configures the current MDM Shell to manage the specified System Center Mobile Device Manager instance.

You can use MDM Shell cmdlets to manage services and devices within one MDM instance at a time. You use the Set-MDMCurrentInstance cmdlet to specify the instance that you want the current MDM Shell to manage.

Syntax

Set-MDMCurrentInstance [-Identity] <MDMCurrentInstance> [-Force] [-confirm] [-whatif] [<CommonParameters>]

Parameters

The following describes the Set-MDMCurrentInstance cmdlet parameters.

  • Identity <MDMCurrentInstance>
    Specifies an MDM instance. This parameter can be an MDMInstance name or friendly name.
  • Force
    Suppresses the prompt that displays when the value you specify for Identity matches both a unique ID and the friendly name of another MDM instance.
  • WhatIf
    Informs you of what changes would be made if the action were to be performed (the cmdlet is not executed).
  • Confirm
    Prompts you for confirmation before the cmdlet executes.
  • 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 Set-MDMCurrentInstance 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

None

Examples

This Set-MDMCurrentInstance command example configures the current MDM Shell to manage the MDM instance "Contoso."

C:\PS>Set-MDMCurrentInstance "Contoso"

Cmdlet Help

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

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

See Also

Reference

Get-MDMCurrentInstance
Get-MDMInstance