Killing SYSTEM processes

B

Brian Wakem

How do I script the killing of SYSTEM processes as Administrator on Windows
Server 2003?

I am trying to do it in Perl using:

Win32::process::KillProcess($pid, $exitcode)

and

kill 9,$pid

Which fails with a permission denied message, apparently Administrator
cannot kill SYSTEM processes. Is there a work around?



--
Brian Wakem
 
D

David Parkes

Do a google for PSTOOLS this might help you.

"Brian Wakem" <no@email.com> wrote in message
news:5g6itkF3f8djdU1@mid.individual.net...
> How do I script the killing of SYSTEM processes as Administrator on
> Windows Server 2003?
>
> I am trying to do it in Perl using:
>
> Win32::process::KillProcess($pid, $exitcode)
>
> and
>
> kill 9,$pid
>
> Which fails with a permission denied message, apparently Administrator
> cannot kill SYSTEM processes. Is there a work around?
>
>
>
> --
> Brian Wakem
 
B

Brian Wakem

David Parkes wrote:
>
> "Brian Wakem" <no@email.com> wrote in message
> news:5g6itkF3f8djdU1@mid.individual.net...
>> How do I script the killing of SYSTEM processes as Administrator on
>> Windows Server 2003?
>>
>> I am trying to do it in Perl using:
>>
>> Win32::process::KillProcess($pid, $exitcode)
>>
>> and
>>
>> kill 9,$pid
>>
>> Which fails with a permission denied message, apparently Administrator
>> cannot kill SYSTEM processes. Is there a work around?
>>
>>
>>

> Do a google for PSTOOLS this might help you.



Thanks David, pskill does the job.


--
Brian Wakem
 
Back
Top Bottom