Jump to content

Killing SYSTEM processes


Recommended Posts

Guest Brian Wakem
Posted

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

  • Replies 2
  • Created
  • Last Reply
Guest David Parkes
Posted

Re: Killing SYSTEM processes

 

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

Guest Brian Wakem
Posted

Re: Killing SYSTEM processes

 

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


×
×
  • Create New...