SCOM cmdlet New-ManagementGroupConnection

This is one of several Operations Manger Powershell blog posts that I’m moving to this site. Enjoy!

How would one manage two different management groups from one PowerShell console? This is when you would need to use the two cmdlets New-ManagementGroupConnection and Set-Location.  You have two different management groups, PROD and TEST. You open your PowerShell console, and it opens to PROD, but you want to work with the TEST management Group, do the following:

PS Monitoring:\PRODRMS
>new-managementgroupconnection TESTRMS
PS Monitoring:\PRODRMS
>set-location monitoring:\TESTRMS
PS Monitoring:\TESTRMS
>

Your now connected to the TESTRMS. Now to switch back to the PRODRMS do the following:

set-location monitoring:\PRODRMS

PS Monitoring:\TESTRMS
>set-location monitoring:\PRODRMS
PS Monitoring:\PRODRMS
>

Your now connected to the PRODRMS.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.