Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: WMI with Perl

by LD2 (Curate)
on Mar 07, 2003 at 19:48 UTC ( [id://241241]=note: print w/replies, xml ) Need Help??


in reply to WMI with Perl

here's an example from the ASPN mailing lists:
#! perl -w use Win32::OLE; $instances = Win32::OLE->GetObject("winmgmts:")->InstancesOf("Win32_Process") or die "Cannot access WMI"; for my $proc (in $instances) { printf "%5d %7d %s\n", $proc->{ProcessId}, $proc->{WorkingSetSize}/1024, $proc->{Name}; }
haven't tested it to see if it works.

but as others said.. Google is your friend.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-19 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found