Skip to main content
Question

I am unable to connect to the local device as part of training. Getting 'Automation Anywhere Bot Agent service failes to remove and return error (5).

  • July 28, 2026
  • 1 reply
  • 18 views

I am unable to connect to the local device as part of training. Getting 'Automation Anywhere Bot Agent service failes to remove and return error (5).

1 reply

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+6
  • Automation Anywhere Team
  • July 28, 2026

@Divya Kumar Essentially, that message means the system is not allowing the installer to remove the current Bot Agent. You can try these steps:

  • Disable any anti-virus and firewall software.
  • If it got to the point of asking “Install for all users” or “Install just for me”, choose “Install for all users”.
  • Bring up a Terminal in Admin mode and try these commands to manually remove the Bot Agent service:   
    sc stop "Automation Anywhere Bot Agent"   
    followed by:   
    sc delete "Automation Anywhere Bot Agent"
  • Engage with your IT department for assistance.