Just a quick note on how to enable agent proxy via PowerShell

Assumptions in this scenario:

  • SCOM 2012 R2 - UR3
  • Using Operations Manager Shell
  • You want all Agents with proxy enabled

Some basics:

Get-SCOMAgent

Get-SCOMAgent

Let’s limit our scope..

Get-SCOMAgent | where {$_.ProxyingEnabled -match $False}

Get-SCOMAgent_Disabled

Let’s enable the proxy for all listed agents

Get-SCOMAgent | where {$_.ProxyingEnabled -match $False} | Enable-SCOMAgentProxy

Get-SCOMAgent_SetEnable

Check the Agents again..

Get-SCOMAgent | where {$_.ProxyingEnabled -match $False}

Get-SCOMAgent_Disabled2

Done..

Kevin Holman (a good resource for SCOM stuff) also talks about this here on his TechNet blog.

 

Cheers'

Dan

Daniel Apps

Hi, I'm Daniel Apps — AI platform enthusiast, unapologetic infrastructure nerd, and dad to two small humans. I write about infrastructure, AI industry topics, and the real-world chaos of modern IT.

More about me →

s