I'm not very good at windows object and i encounter a problem when using Win32::OLE .
Here is what i do:
This gives the following result :use Win32::OLE qw (in); my $Computer="."; my $WMIServices= Win32::OLE->GetObject("winmgmts:\\\\" . $Computer . " +\\root\\cimv2"); my $test=SubclassesOf $WMIServices; use Data::Dumper; print Dumper($test);
$VAR1 = bless( {
'Count' => 626,
'Security_' => bless( {
'ImpersonationLevel' => 3,
'AuthenticationLevel' => 6,
'Privileges' => bless( {
'Count' => 0
}, 'Win32::OLE' )
}, 'Win32::OLE' )
}, 'Win32::OLE' );
The problem is that when i look at the properties of $test with the Visual Basic Espions I see a whole lot of other objects, named "Item 1" to "Item 256" . Here's what i do in VB :
My question is what are those Item objects and why am i not seeing them with Perl ?Set test = objWMIService.SubclassesOf()
Thanks for your explanations :)
In reply to WMI SubclassesOf $WMIServices not giving all the objects ? by secret
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |