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.