UIRobot: Unable to KILL Process



Scenario: UiRobot is throwing below error for KILL activity when run on a server. Service account we are using is having Admin access.

System.AggregateException: Encountered errors while trying to kill a process —> System.ComponentModel.Win32Exception: Access is denied at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited)

Steps to reproduce:

Current Behavior:

Expected Behavior:

Studio/Robot/Orchestrator Version:

Last stable behavior:
Last stable version:
OS Version:
Others if Relevant: (workflow, logs, .net version, service pack, etc):


@aksh1yadav please help…


Try this using run command
Taskkill /IM firefox.exe /F


Hey @Harnit.singh

Will you tell me which process you are targeting and what approach you are taking?



@aksh1yadav i am trying to Kill “EXCEL” Process by simply using “Kill Process” activity with Process name as “EXCEL”


send hot key =win+r
typeinto =Taskkill /IM excel.exe /F + enter


It is on server? Right? So that process might be start from some other user session so it is running in the background. if you are having already an admin access as you have mentioned that either try to kill that process forcefully or i have shared many months back one example on the forum to kill excle process user specific too… check that sample and try that…



Thanks @Atrimal and @aksh1yadav