Enable Proxy as SCOM Console Task

Here comes another post about a console task. This time it is in SCOM. I have been doing something for a while that makes life a little bit easier. What I do is add a console task to SCOM that enables proxy on monitored servers when it is launched.

NOTE: For a discussion on why you would enable proxy on monitored servers visit this link:


The nice thing about this console task is that it searches through monitored servers, finds the ones that do not have proxy enabled, enables them and then outputs who they are. This is possible thanks to a tool that Mark Manty of Microsoft built called SetAgentProxyEnabled. You can find that tool here:


Here is the process I use to add this tool as a console task in SCOM.

  • Create a windows share on one of the management servers. I call it something like SCOMTasks.
  • Extract the tool into this share.
  • In SCOM navigate to Authoring>Management Pack Objects>Tasks.
  • Right click on Tasks and select Create a new Task.
  • In the Create Task Wizard expand Console Tasks and select Command line. Select or create a new management pack to store this task in and click Next.


  • On the next screen give the task a name such as Enable Proxy. Set the Task target to Operations Manager Management Group and click Next.


  • Leave the defaults on the General tab. Click on the Command Line tab.
  • Put in the UNC path to the .exe. Example: \\SCOMSERVERNAME\SCOMTasks\SetAgentProxyEnabled.exe
  • In the Parameters put in a SCOM RMS server or RMS emulator name. Be sure to tick the check box for Display output when this task is run and then click Next.


To run the task in the SCOM console go to Monitoring>Operations Manager>Management Group Diagram and in the center pane click on the Operations Manager Management Server Computer Group object. In the right hand pane under Tasks>Operations Manager Management Group Task click on Enable Proxy. The results will be shown in the Console Task Output window as shown in the following screenshot.


That completes the post for adding enable proxy as a console task. Alternatively if you want to simply enable proxy on all monitored servers on a regular schedule you can use a PowerShell script. This PowerShell script can be found here:


Print Friendly, PDF & Email

Leave a Comment