Schema Query - Top Level Classes Only

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi,

I'm trying to get a list of all "top level" classes from a given namespace, e.g. connect to CimV2 then issue:

SELECT * FROM Meta_Class

The problem is that I get nearly 1000 results, I assume it's giving me all sub-classes as well. Is there a way to get only the top level classes?

--
Gerry Hickman
London (UK)

.



Relevant Pages

  • Re: Schema Query - Top Level Classes Only
    ... Urkec's reply solves the problem in the context of using a query, but I want to use the SubClassesmethod instead to get only top-level-classes from a Namespace, see my previous post for code snippets that demonstrate this. ... Gerry Hickman (London UK) ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Creating Shares Remotely
    ... All you have to do is connect to remote WMI root\cimv2 namespace on machine B and then use this class to create share. ... Gerry Hickman (London UK) ...
    (microsoft.public.win32.programmer.wmi)
  • RE: Schema Query - Top Level Classes Only
    ... "Gerry Hickman" wrote: ... I'm trying to get a list of all "top level" classes from a given namespace, ... e.g. connect to CimV2 then issue: ...
    (microsoft.public.win32.programmer.wmi)