Today I will discuss here how we can connect to SCOM SDK from a remote computer where we don’t need to copy the SDK binaries. I am going to use ScriptBlock to connect the PowerShell of the remote machine.

Please find the sample piece of code and connect to SCOM SDK remotely.

 

Invoke-Command -ComputerName SCOMMS1 -ScriptBlock{

Import-Module OperationsManager

New-SCOMManagementGroupConnection SCOMMS1

Get-SCOMManagementGroupConnection

}

# Here SCOMMS1 is my SCOM Management server name.

 

Leave a Reply

Your email address will not be published. Required fields are marked *