http://www.perlmonks.org?node_id=241235

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.

    -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