Script /.bat to kill certain process on all logged-in users on the computer

1

Good people, my problem is this: I have a process called gdc.exe . If a user has this process open and another user logs on to the machine and tries to run the program that generates this same process, it can not open the program. I need a .bat or a script that kills all open processes with this name, not only on the user you are using (preferably not requiring administrative direct), but on all who are logged on to the machine. I already looked around but did not find anything that would help me.

    
asked by anonymous 04.02.2015 / 18:48

2 answers

1

You can kill all processes with the name gdc.exe you can use the taskkill :

taskkill /f /im gdc.exe

In order for taskkill to terminate processes running under other users, you need to run the command as an administrator.

    
04.02.2015 / 19:03
0

create another bat and use this if your network has a domain can help

runas /env /savecred /nome-do-usuario-administrador@dominio "caminho do bat que mata o processo"
after you have run, you simply enter the Administrator password once and then typing again.     
04.02.2015 / 19:27