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.
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.
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