Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: using perl to stop processes on windows

by maa (Pilgrim)
on Mar 03, 2004 at 19:40 UTC ( [id://333662]=note: print w/replies, xml ) Need Help??


in reply to using perl to stop processes on windows

Hi,

pskill & psexec are fine utilities indeed, but to answer your question, "Yes, Perl can kill processes on a remote Win32 workstation."

Perl will need the help of WMI, though! This should be installed by default on W98 - XP machines.

If you have the NTReskit, check out the kill.vbs script which does exactly this. If you want to convert that to Perl using Win32::OLE then why not post the results here afterwards :-)

You should also check out Dave Roth's site and nodes like How to Start a Process in a Remote Win32 Machine using Perl and WMI for other examples of getting process listings under Win32.

HTH - Mark

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://333662]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-03-28 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found