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

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)

Replies are listed 'Best First'.
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 tall_man (Parson) on Mar 07, 2003 at 19:45 UTC
Re: WMI with Perl
by sschneid (Deacon) on Mar 07, 2003 at 19:45 UTC
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.


Re: WMI with Perl
by skki (Initiate) on Mar 07, 2003 at 20:13 UTC
    have a look at this

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://241235]
Approved by jlk
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2017-11-23 16:56 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (336 votes). Check out past polls.