secret has asked for the wisdom of the Perl Monks concerning the following question:
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 :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WMI SubclassesOf $WMIServices not giving all the objects ?
by BrowserUk (Patriarch) on Jan 23, 2006 at 12:03 UTC | |
|
Re: WMI SubclassesOf $WMIServices not giving all the objects ?
by marto (Cardinal) on Jan 23, 2006 at 12:07 UTC | |
|
Re: WMI SubclassesOf $WMIServices not giving all the objects ?
by secret (Beadle) on Jan 23, 2006 at 13:08 UTC |