Switch to another MG in Command Shell session

If you have multiple Management Groups, this can be handy to switch between them while in the same Command Shell session.  Always be aware of which Management Group you’re connected to while in the Command Shell!

This example assumes your session is currently connected to MG1, and you want to establish a session to MG2.

Connect to MG2

New-ManagementGroupConnection MG2_RMS_Server_Name
Set-Location monitoring:\MG2_RMS_Server_Name

Switch back to MG1

Set-Location monitoring:\MG1_RMS_Server_Name

command shell main menu