Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

WMI and OLE

by leonidlm (Pilgrim)
on Jul 20, 2008 at 09:59 UTC ( [id://698903]=perlquestion: print w/replies, xml ) Need Help??

leonidlm has asked for the wisdom of the Perl Monks concerning the following question:

Hi all
I am new to WMI technology, I just try to understand why when we want to access the WMI object we use the Win32::OLE, How are they related?
For example I saw the following code:
$WMI = Win32::OLE->GetObject("winmgmts:{impersonationLevel=impersonate}$Machine\\Root\\cimv2")||die;
When I search for winmgmts in OLEVIEW.exe and try to locate it in objects I see no such entry. How can it be ?
Thanks all for any help.

Replies are listed 'Best First'.
Re: WMI and OLE
by Anonymous Monk on Jul 20, 2008 at 10:14 UTC
      Thanks, but maybe someone still can explain to me my question ?

        I guess that winmgtmts: is registered as a protocol handler and not necessarily available through the OLE browser. This is a question that is likely better answered by searching through the MSDN than here, because it has nothing to do with Perl and everything to do with how the Registry and OLE interoperate on Windows.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://698903]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-16 05:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found