mmanring has asked for the wisdom of the Perl Monks concerning the following question:
------------------------------------------------------------sub checkSEINPerformance { my $objWMI = Win32::OLE->GetObject('winmgmts://' . $strComputer . +'/root/cimv2'); my $colProcesses = $objWMI->InstancesOf('Win32_Process'); foreach my $objProcess (in $colProcesses) { if ($objProcess->Name =~ /SEINPerformance/) { return $objProcess->ProcessID; } } return -1; }
...and it goes on to list line numbers and the such. If anyone can help it would me much appreciated.Win32::OLE(0.1701) error 0x80070422: "The service cannot be started, either because it is disabled or because it has no enabled devices associated with it" after character 0 in "winmgmts://.root/cimv2" ....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::OLE module not working
by NetWallah (Canon) on Jan 22, 2008 at 17:27 UTC | |
|
Re: Win32::OLE module not working
by InfiniteSilence (Curate) on Jan 22, 2008 at 16:59 UTC |