Link to home
Create AccountLog in
Avatar of armitdept
armitdeptFlag for United States of America

asked on

Kill an app across domain

I am experimenting with taskill via winxp and w2k3 server. I have an application that roughly 14 users use across my domain. What I would like to do is create a script to kill this app when it is ran. Reason being this application needs to be reindexed and updated on a regular bassis and users leave it running, going workstation to workstation is getting old. Is there a way I can use taskill or something similar to build a sript to kill these processes. Name of the app is called Coredr.exe and corebuyw.exe.

Can anyone help?
Avatar of Ashish Patel
Ashish Patel
Flag of India image

Below commands can do that.
tskill Coredr.exe
tskill corebuyw.exe
Hello armitdept,

You can use Pskill to do this. After you have downloaded it, and installed it try running the below from the command line.

usage: pskill [- ] [-t] [\\computer [-u username] [-p password]] <process name | process id>


Avatar of armitdept


ok i got this to successfully kill a task on a single machine now can you help in killing the app on 14 machines?
Greetings Armitdept,
You can utilize Windows XP and 2003 builtin tool called WMIC in batch file or from command line.

Click Start -> Run -> Cmd.exe

WMIC /NODE:@"Computers.txt" Process WHERE "Name='MyProcess.exe'" DELETE
                                    Change this process name ---------------^
List all your computer names or IP addresses inside Computers.txt file.  And Change process name that you want to kill.
It will kill that process on all machines that are listed inside Computers.txt file.

Hope this helps!
How am I going to organize the computers.txt file?
computername coredr.exe
computername coredr.exe
computername coredr.exe
Avatar of Farhan Kazi
Farhan Kazi
Flag of Australia image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
All of you rock
I am sorry I could not split up the points, it would not let me. I owe you all one.

Thanks again.
I hope someone is still there....

I run this script and I get the following

Script: G:\Core vb scribt\killcore.vbs
Line: 1
Char: 6
Error: Syntax Error
Code: 800A03EA
Source: Microsoft VBScript compilation error

Can you help?