NTDOCAdministrator
(KiX Master)
2003-08-31 01:23 PM
Native Terminate function

It would be nice to have a native TERMINATE function like the Microsoft Resourcekit utility KILL or the WMI Process.Terminate

Be able to support both LOCAL and REMOTE as well as Windows 9x/NT/2000/XP/2003

TERMINATE($Computer,'Winword.exe')
or
TERMINATE(@WKSTA,'NOTEPAD.EXE')

Also maybe supporting the process tree where more then one file is part of the process so that the process can be terminated successfully.

[ 31. August 2003, 13:25: Message edited by: NTDOC ]


LonkeroAdministrator
(KiX Master Guru)
2003-08-31 04:51 PM
Re: Native Terminate function

not sure the wmi-way is good.
afaik, with it you can't kill services, but kill does them fine too.


Mart
(KiX Supporter)
2003-08-31 10:24 PM
Re: Native Terminate function

I’d like this.
This would be like doing an "End task" on the process.

Would not be desirable with the IE process though. Doing an end task on IE will close all IE windows only when just one windows locks up or has a (company policy) not allowed website in it.


LonkeroAdministrator
(KiX Master Guru)
2003-09-01 04:44 AM
Re: Native Terminate function

that's why you can go with PID, not just processname.

Kdyer
(KiX Supporter)
2003-09-04 02:11 PM
Re: Native Terminate function

If we go look at - http://www.sysinternals.com/ntw2k/freeware/pstools.shtml we find a number of external tools that work along these lines.

Kent


LonkeroAdministrator
(KiX Master Guru)
2003-09-04 11:49 PM
Re: Native Terminate function

along the lines of?
ps there does not mean anything about process, just a name for a suite.


Kdyer
(KiX Supporter)
2003-09-06 07:34 AM
Re: Native Terminate function

Huh??

quote:

PsKill - kill processes by name or process ID
PsList - list detailed information about processes

I have used these (and they are available as separate downloads too).. I have also used NTHANDLE as well..

Kent


LonkeroAdministrator
(KiX Master Guru)
2003-09-06 08:27 AM
Re: Native Terminate function

a number?
right, 2 makes a number [Wink]