How to Repair SCOM Agents on Windows Computers

This post covers multiple methods using which you can repair the SCOM agents or Operations Manager agents installed on windows computers. Before you uninstall and re-install Operations Manager agents, you must try repairing the agents first.

In my previous posts, I covered the steps to install SCOM agents on windows computers. In addition to that I also covered the steps to uninstall SCOM agents.

How to Repair SCOM Agents on Windows Computers

In this post I will cover three methods to repair the Operations Manager agents. They are listed below.

  • Repair OM agents using Operations Console.
  • Repair OM agents using MOMAgent.msi – using setup wizard and command line.

How to Repair Operations Manager agents using Operations Console

To repair operations manager agents using SCOM console, launch the operations console. Ensure you are using an account that is a member of the Operations Manager Administrators role. In other words this account must have administrative rights on the computer for the repair to succeed.

Out of all the three methods, repairing the agents using SCOM console is easiest one. This is because the other methods involve logging in to the client computer and performing the actions. Hence I suggest use the console to repair the SCOM agents.

Launch SCOM console. Click Administration and navigate to Device Management\Agent Managed. In the Agent Managed pane, select computer you want to repair the agent on, right-click and select Repair.

How to Repair SCOM Agents using SCOM console

In the Repair Agents dialog box, either select Use selected Management Server Action Account or Other user account.

Click Repair.

How to Repair SCOM Agents using SCOM consoleTo monitor the repair progress, you can go to Agent Management Task Status dialog box. Here look at the status for each selected computer, it changes from Queued to Success. Success means the computers are ready to be managed.

Repair SCOM agents using MOMAgent.msi setup wizard

The second method to repair operations manager agent is by using the MOMAgent.msi setup wizard.

On the client machine, launch Control Panel. Click Programs and Features and right click Microsoft Monitoring agent. You get two options – Uninstall and Change. Click Change.

Repair SCOM agents using MOMAgent.msi setup wizard

On the Microsoft Monitoring Agent setup wizard, click Next.

Repair SCOM agents using MOMAgent.msi setup wizard

In the Program Maintenance page, select Repair, and then click Next.

Repair SCOM agents using MOMAgent.msi setup wizard

On the Ready to Repair the Program page, click Install.

Repair SCOM agents using MOMAgent.msi setup wizardOn completing the Microsoft Monitoring Agent Setup Wizard page, click Finish.

Repair SCOM agents using MOMAgent.msi command line

The third method to repair the OM agents is using the MOMAgent.msi command line. Copy the SCOM agent setup files from Operations Manager installation source to a folder on client computer.

For example in my case the SCOM agent setup files are copied over to scom folder on desktop.

On the client computer run the command prompt as administrator. Change the path to scom agent source folder. Type the below command to repair the agent.

You can get the uninstall string here. Replace {CEB9E45B-2152-4C10-A022-0825B53B632F} with the key present on your machine.

Repair SCOM agents using MOMAgent.msi command line

You can also repair the agent using the below command.

You must restart your computer after the agent repair is complete.
Repair SCOM agents using MOMAgent.msi command line

SCOM Agent Repair Event Logs

Most of all when you repair operations manager agents using any of the above methods, you can use the event viewer to verify the repair operation.

On the client computer check the Application Event Log to confirm it completed successfully or if it had errors while repairing the agent.

When you repair the agent, the first important event ID to look for is 1040. It states Beginning a Windows installer transaction.

SCOM Agent Repair Event Logs

Check the next event ID 11728 which confirms the Microsoft Monitoring agent configuration.

SCOM Agent Repair Event Logs

Finally check the Event ID 1035 which clearly tells us that Windows Installer reconfigured the product Microsoft Monitoring Agent.

SCOM Agent Repair Event Logs

You might also like

Leave a Reply

avatar

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. AcceptRead More