Yup. $wmi is undef so Win32::OLE->GetObject failed. Check that the contents of $class is correct.
Update: the following test code works for me:
use strict; use Win32::OLE; use warnings; my $wmi = Win32::OLE->GetObject('winmgmts:!\\\\localhost\root\default' +); print "Got a wmi object" if defined $wmi;
In reply to Re: Perl - WMI - BCD
by GrandFather
in thread Perl - WMI - BCD
by ChrisLD
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |