Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: WMI with Perl

by LD2 (Curate)
on Mar 07, 2003 at 19:48 UTC ( #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
Node Status?
node history
Node Type: note [id://241241]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2016-07-01 05:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (407 votes). Check out past polls.