Skip to main content

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

wmi-class
string
required
The WMI class to query (e.g., “SMS_Authority”)
wmi-namespace
string
The WMI namespace to query (default: “root\CCM”)
properties
string
Specify this option for each property to query (e.g., “-p ResourceName -p UniqueUserName”)
verbose
boolean
Display all class properties and their values
where-condition
string
A WHERE condition to narrow the scope of data returned by the query
dry-run
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

Query SMS_Authority to discover management points and site codes for the local SCCM client.
Examine CCM_* classes to understand client configuration and installed components.
Use WHERE conditions to filter large datasets and extract specific information.