Share This Post

SCOM PowerShell cmdlet New-ManagementGroupConnection

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.

Share This Post

Leave a Reply