|How can manage agent proxy in a SCOM agent using PowerShell?
PowerShell makes everything easier, right? To list all agents using names with wildcards we can use the following cmdlet where in this post all my locations share the site code on their names:
If the previous cmdlet brought the servers that you were expecting, then we can go ahead and enable the agent proxy for all those servers using the following cmdlet:
Get-SCOMAgent *POA* | Enable-SCOmAgentProxy
If you want to disable based on the initial cmdlet, just run the following cmdlet:
Get-SCOMAgent *POA* | Disable-SCOmAgentProxy