UIRobot: Unable to KILL Process

robot

#1

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):


#2

@aksh1yadav please help…


#3

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


#4

Hey @Harnit.singh

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

Regards,!!
Aksh


#5

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


#6

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


#7

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…

Regards…!!
Aksh


#8

Thanks @Atrimal and @aksh1yadav