Re: WMI / NameSpace / Providers

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hello Sam:

Greetings and thanks. I really appreciate your help in this matter.

As suggested by you, I Installed the SDK and am purusing the Documentation.

As for your qs about using WBEMTest, yes, I have used it.

WHat I am trying to do is develop a small WebPage(s) application. Visualize,
if you will, 3 list boxes - lb1, lb2 and lb3. The application will not be
doing any 'Instrumentation'; at least at this time.

The first list box will have the Providers from the root\cimv2 namespace. I
do not need to see or capture all the providers [for e.g Active Directory,
which is a Provider but from a different namespace, root\directory\ldap and
so on.] Now, I want to know what SQL / WQL I need to write to capture this
info to populate my lb1. If I can do this, I can say I am well on my way to
completing my tasks in terms of populating the lb2 and lb3. Just so I am
clear, for any item selectedin lb1, will show the corresponding objects in
the lb2. For the item selected in lb2, similarly, will populate the class
items in the lb3.

I hope i make myself clear now. In my view, these should be fairly
straight-forward queries that can be created and executed ina C# program to
populate the various listboxes. However, I am hitting a road bump!

Again, thanks for your reading, patience and help!

"Sam Hobbs" wrote:

> I don't know what you mean by "cimv2 DB structure". I think what you need is
> the WMI SDK documentation. Do you have the Windows Platform SDK installed?
> The WMI documentation is included with the Platform SDK documentation. You
> should have it installed in your system locally. An online copy of the WMI
> documentation is at:
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/wmi_start_page.asp
>
> I am not sure but I think you can use the "__Win32Provider" class.
>
> Are you familiar with the "WBEMTest" tool? I am not sure where it comes
> from; I think it is provided with the WMI SDK which is part of the Platform
> SDK. Using WBEMTest, click on the "Connect" button and connect to
> "root\cimv2". Then click on the "Enum Instances" button and for the
> superclass name enter "__Win32Provider". That will show you the results of
> queryihng that class. Also, if you click on the "Query" button, enter
> something such as "select * from __Win32Provider" to get the same results.
> If that select is the type of thing that you are looking for, then it is all
> in the documentation.
>
>
> "Kishanb" <Kishanb@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:B92B4EFA-3C97-40EC-8BF4-6F0177757F7B@xxxxxxxxxxxxxxxx
> > Hello All & Greetings.
> >
> > Can someone please help me with writing a query to populate a listbox with
> > the providers in the root\cimv2 namespace, please. Even just the query
> > would
> > be helpful - since I do not have the cimv2 DB structure.
> >
> > thanks,
> >
> > RKB
> > email also: cansciences@xxxxxxxxx
>
>
>
.


Quantcast