Subscribe to Windows IT Pro
September 29, 2009 12:00 AM

Find the Binary File for Any WMI Class

Identify a WMI class's DLL binary to help you troubleshoot WMI-process–related problems
Windows IT Pro
InstantDoc ID #102615
Rating: (1)

Now we need to get the class identifier or CLSID of the provider from the provider name. To do so, you submit a WMI query for the system class called __Win32Provider, which will contain the CLSID or GUID of the provider COM object. Run wbemtest.exe, connect to the target namespace (root\default), click the Query button, and issue the following query:

Select * from __Win32Provider where name="InstProvSamp"

In the query result box, you'll see an entry like the following:

_Win32Provider.Name="InstProvSamp"

Open the Object editor by double-clicking this entry, as Figure 3 shows.

Notice the CLSID entry pointing to the GUID that we need; every COM object places a registration entry under HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID. We can use regedit.exe to pinpoint our search directly to the COM registration information and get right to the exact name and location of the WMI provider binary, as Figure 4 shows.

As I mentioned, the provider binary name doesn't always match the class name. For instance, the registry provider is defined under the root\default class, and the __Win32Provider name is RegProv. However, the actual DLL name is STDPROV.DLL and is located under the c:\windows\system32\wbem directory.

More Uses
There are several reasons why you might need to find the binary name for a given WMI class; I only mentioned CPU utilization as one possible scenario. Although your scenario may be different, the steps I've described will work to find the WMI provider binary name and location for every scenario. Good luck, and as usual please feel free to contact me regarding this article or any of my previous articles.

Related Content:

ARTICLE TOOLS

Comments
  • Rostand
    3 years ago
    Sep 29, 2009

    i have high CPU utilization on my server ever since it had a well-known antivirus software placed on it. i can see it slowly eating up memory in process explorer.

    i hope this article will help me exactly pinpoint the problem. the AV vendor has no hits for the problem (hiding?).

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.