Overview
Get information on local WMI class instances. This command allows you to query specific WMI classes and retrieve their instance data, with options for filtering properties and adding WHERE conditions.ACLs are applied at the object class and instance level, so access may vary depending on your privileges.
Syntax
Parameters
string
required
The WMI class to query (e.g., “SMS_Authority”)
string
The WMI namespace to query (default: “root\CCM”)
string
Specify this option for each property to query (e.g., “-p ResourceName -p UniqueUserName”)
boolean
Display all class properties and their values
string
A WHERE condition to narrow the scope of data returned by the query
boolean
Display the resulting WQL query but do not execute it
Examples
Output Format
The command outputs detailed information about class instances:WHERE Condition Examples
Common Use Cases
Site Information Discovery
Site Information Discovery
Query SMS_Authority to discover management points and site codes for the local SCCM client.
Client Configuration Analysis
Client Configuration Analysis
Examine CCM_* classes to understand client configuration and installed components.
Targeted Data Extraction
Targeted Data Extraction
Use WHERE conditions to filter large datasets and extract specific information.
Related Commands
local classes- List available WMI classeslocal class-properties- Get class property definitionslocal query- Execute custom WQL queries