End Google Ads 201810 - BS.net 01 --> I've been trying to run a simple block of code from C sharp in a powershell run space.

I went to run that command in the powershell example project on my workstation and it did not work, but that demo application will run on the server that has scom installed.

Is there a management pack (like with Exchange) that I need to install on my workstation to get access to the dlls and commands that I have through powershell when on the server locally. Any ideas?

Import-Module –Name OperationsManager New-SCOMManagementGroupConnection -ComputerName "serverName" get-scomgroup foreach ($group in get-scomgroup){ Write-Host $group}

How to run PowerShell scripts from C#[^]