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 SCOMManagementServer -ScriptBlock{

Import-Module OperationsManager

New-SCOMManagementGroupConnection SCOMManagementServer

Get-SCOMManagementGroupConnection

}

# Here SCOMMS1 is my SCOM Management server name.