View Single Post
Old 10-10-2008   #2 (permalink)
James Whitlow


 
 

Re: How to terminate a Win32 process without using "winmgmts:"

"Smoreno" <Smoreno@xxxxxx> wrote in message
news:BC3F0888-3984-455B-8752-69DEEF321B11@xxxxxx
Quote:

> Hello,
>
> I use the following script to terminate the process listed in it. As the
> server gets loaded killing the process (terminate()) takes longer as the
> load
> increases. The WMI service takes longer find and kill the process.
>
> Other than calling WMI, is there another way to kill the process via
> script
> that doesn't take a long time?
You might consider shelling out to Taskkill:

http://technet.microsoft.com/en-us/l.../bb491009.aspx

I don't know if it is going to be faster or not, but it does allow you
to filter by username.


My System SpecsSystem Spec