Unable to reinstall agent on Windows 2012 R2 Standard

Document ID : KB000008881
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

We were having issues with one of our Windows agents so we decided to uninstall and reinstall it. After uninstalling the agent, rebooting the server, and trying to reinstall the agent, the install fails with RC-1. We see 'CA Workload Automation Agent (WA_AGENT)' in the Windows Services but the services will not start.

Environment:
CA Workload Automation AE Agent r11.3.X
Cause:

After completing the agent uninstall, the agent service was not removed from the Windows Services. When you attempt to reinstall the agent, it fails to create the agent service (because it already exists) and a RC-1 error occurs. The agent services will not start from the Windows Services because the path to the cybAgent.exe no longer exists.

Resolution:

You need to manually remove the agent service from the Windows Services.

1. Open a command prompt (Run as administrator)

2. Type the following command: sc delete "CA Workload Automation Agent (WA_AGENT)" 

3. Reboot the server to complete the removal of the agent service

4. Run the agent installation again