Kill process issue on VM

Hi,

In the UIpath studio they are using “kill process” activity to kill the excel application. In the VM ware using robotic account it throws error .

So i tried logging in using robotic account and manually in the command prompt I tried killing excel, it throws an error as follows .

As an admin i logged into the VM,I tried killing excel, it’s successfully closed.

how to change the role of the robotic account ??

1 Like

I have a feeling you are running into the ‘access denied’ error because you are trying to kill the excel.exe process across ALL users. You should instead only kill the process for the current user - see example of how to do this here: How to kill the excel process which is running by current user - #4 by aksh1yadav

You could make the robot have local admin access on the machine which would allow it to kill the process for all users on the machine - it is a much better idea to properly deal with the issue by killing only the process you want though, as killing all process for all users could have unintended consequences

1 Like