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

Leave A Comment