Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

WMI with Perl

by kidwahoo94 (Novice)
on Mar 07, 2003 at 19:39 UTC ( #241235=perlquestion: print w/ replies, xml ) Need Help??
kidwahoo94 has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone know where I can find some info on WMI and Perl (modules, manuals, etc.).

Title edit by tye (no single-word titles, please)

Comment on WMI with Perl
Re: WMI with Perl
by sschneid (Deacon) on Mar 07, 2003 at 19:45 UTC
Re: WMI with Perl
by tall_man (Parson) on Mar 07, 2003 at 19:45 UTC
Re: WMI with Perl
by LD2 (Curate) on Mar 07, 2003 at 19:48 UTC
    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.
Re: WMI with Perl
by Enlil (Parson) on Mar 07, 2003 at 19:49 UTC
    Did you try CPAN or the Oracle or this sites super search. All seem to bring back information about WMI, without knowing your purpose, it is hard to more specific.

    -enlil

Re: WMI with Perl
by skki (Initiate) on Mar 07, 2003 at 20:13 UTC
    have a look at this
    http://www.perl.com/CPAN/modules/index.html

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://241235]
Approved by jlk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2014-07-14 11:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (257 votes), past polls