How to Enable Agent Proxying for All Agents in a SCOM 2016 Environment

How can you enable agent proxying for all agents in a SCOM 2016 environment?

If you already have your agents installed, you can run the following PowerShell to change them all at once:

# Change the Proxying Settings via PowerShell
Get-SCOMAgent | where {$_.ProxyingEnabled.Value -eq $False} | Enable-SCOMAgentProxy

 

Agent Proxying

 

If you don’t have any agents installed or you simply want to turn on Agent Proxying globally for all new agents, try this PowerShell:

# Load the old Snap-In, connect to the server and turn on Proxying
add-pssnapin “Microsoft.EnterpriseManagement.OperationsManager.Client”
new-managementGroupConnection -ConnectionString:YOURMANGEMENTSERVERNAME
set-location “OperationsManagerMonitoring::”
Set-DefaultSetting -Name HealthService\ProxyingEnabled -Value True

 

If you’d like to know how many agents now have Agent Proxying enabled, try this PowerShell:

# How many agents have proxying enabled?
(Get-SCOMAgent | where {$_.ProxyingEnabled.Value -eq $True}).count

 

I should point out that you can also enable agent proxying for a single machine as well…In the console under the Administration pane, choose “Agent Managed”. Locate the agent, choose Properties and check this box. Again you could use PowerShell if you like.

 

Agent Proxy

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 
Comments

No comments yet.

Leave a Reply