Help for this page

Select Code to Download


  1. or download this
    use strict;
    use Win32::OLE;
    ...
    my $wmi = Win32::OLE->GetObject('winmgmts:!\\\\localhost\root\default'
    +);
    
    print "Got a wmi object" if defined $wmi;