In my last article I showed you how to enable the System Center Operations Manager (SCOM) Agent Proxy using PowerShell. We used the cmdlet:
PS C:\> Get-SCOMagent | where {$_.ProxyingEnabled -match “False”} | Enable-SCOMAgentProxy
While this does work, it is what I call a point-in-time solution… that is, it enables the Agent Proxy on everything that exists today… but how do we go about switching it so that we don’t have to do this over and over again? Here we go:
PS C:\> add-pssnapin “Microsoft.EnterpriseManagement.OperationsManager.Client”
PS C:\> new-managementGroupConnection –ConnectionString:YourSCOM.yourdomain.com
PS C:\> set-location “OperationsManagerMonitoring::”
PS C:\> Set-DefaultSetting –Name HealthService\ProxyingEnabled –Value True
That should do it… have fun!
Leave a Reply