Skip to main content
Answer

The bot needs to run with administrative privileges to make changes to a service.

  • August 22, 2023
  • 5 replies
  • 675 views

Forum|alt.badge.img+6

Hi,

I need to create a bot working with Windows Services, after testing some of them…, I am getting the following error message.

“The bot needs to run with administrative privileges to make changes to a service.”

the issue is that I can not find how to give the adm privileges to my bot runner.

Any help appreciated.

Best answer by ravi.pothana

Hi @Jose Marin,

Ideally the bot agent needs to be installed by an user who have admin privileges, this will provide the bot agent the administrative privileges to make changes to a service.

Also ensure the bot agent service is running on “local system”

Article to refer:
https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/control-room/devices/cloud-add-local-device.html#:~:text=All%20users%20of%20the%20device%20can%20use%20this%20Bot%20Agent.%20However%2C%20users%20installing%20the%20Bot%20Agent%20must%20have%20administrator%20privileges.

5 replies

Forum|alt.badge.img+8
  • Automation Anywhere Team
  • Answer
  • August 22, 2023

Hi @Jose Marin,

Ideally the bot agent needs to be installed by an user who have admin privileges, this will provide the bot agent the administrative privileges to make changes to a service.

Also ensure the bot agent service is running on “local system”

Article to refer:
https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/control-room/devices/cloud-add-local-device.html#:~:text=All%20users%20of%20the%20device%20can%20use%20this%20Bot%20Agent.%20However%2C%20users%20installing%20the%20Bot%20Agent%20must%20have%20administrator%20privileges.


Forum|alt.badge.img+6
  • Author
  • Navigator | Tier 3
  • August 23, 2023

Hi Ravi,

Thks for your reply.., I already had installed the bot agent with the permissions, but I cotinue with the issue…,

Any other idea you may have?

Thks.

José Marin.


Forum|alt.badge.img+8
  • Automation Anywhere Team
  • August 23, 2023

Hi Jose,

Can you please upload the screenshot of the error message and the logs of the bot agent.

Log file locations:
https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/working-with-automation-tasks/analyze-bot-agent-logs.html


rbkadiyam
Premier Pathfinder | Tier 7
Forum|alt.badge.img+17
  • Premier Pathfinder | Tier 7
  • August 24, 2023

@Jose Marin : your bot id should have full read and write access for the botagent installation directory, you do no not need complete admin access for whole VDI / runner machine.


Forum|alt.badge.img+6
  • Author
  • Navigator | Tier 3
  • August 28, 2023

Good morning,

Thks to all of you for your ideas/solutions…, Have tested the bot with an user with the permissions as admin and worked as expected, now we ae worwing in checking the pemissions to give the minimun required in order to have it running…

Again, Thks for pointing / giving me to the solution.