How to kill admin processes from uipath in windows?

Hey!

Im trying to kill some processes on my PC-WIN10. Only one user -me- and im an admin.
There are processes that i cant kill… i get a “Access Denied” error.

I tried:

  • Start UiPath studio as an administrator and use “Kill process” activity.
  • Tried also kill from “command prompt” (from UiPath) with and without “run as an administrator.”

If i just use the cmd or task manager im able to kill does “something.exe” proccesses. But no matter how i try a cant kill does with UiPath

Any ideas?
Thanks in advance!
Ben

2024-05-06_165547

Hi,

Can you try to set the property Applies To to All and try to run once

1 Like

@bencemarci,

You should be selecting Target → Applies To → OnlyCurrentUser

Thanks,
Ashok :slight_smile:

1 Like

@bencemarci

Can you expand the details and show please

What are you trying to kill?

Cheers

1 Like

Did you set the Kill Process activity to “only current session”? If not, it’s trying to kill that process for all logged in users and that’s why you’re getting this error.

Also, why are you using Kill Process? It seems like people use it way more than they should.

1 Like

Thanks Uthraa, and Anil_G, and Paul , and ashokkarale

I tired, what you guys suggested! i tried to set this parameter Target → Applies To → OnlyCurrentUser and also To -->all.

in the “to-all” settings i get the same error:
2024-05-07_163446

if i set this, to “current user only” than it runs without an error, but also NOT kill the process(es).

Here is one example, from the ~10 process i try to kill.

And i get the same errors if i try to run UiPath studio as an administrator.
And i also tried the same, from UiPath >> open application >> CMD >> type into >>> “taskkill /F /IM BraveCrashHandler64.exe” same errors and problems.

Let me know if you have any other ideas! Thanks again!

  • AppliesTo - Kill process only if it belongs to the current user, session, or desktop. Select one of three options: All, OnlyCurrentUser, OnlyCurrentSession, OnlyCurrentDesktop. The default value is none.
  • Process - A Process type object describing the process to be closed.
  • ProcessName - The name of the process to be closed, written in the following format: "process". This field supports strings and string variables.