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

SharpSCCM local class-instances <wmi-class> [options]

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

# Query SMS_Authority class instances
SharpSCCM local class-instances SMS_Authority

Output Format

The command outputs detailed information about class instances:
[+] Connecting to \\127.0.0.1\root\CCM
[+] Executing WQL query: SELECT * FROM SMS_Authority
-----------------------------------
SMS_Authority
-----------------------------------
Capabilities: <Capabilities SchemaVersion="1.0"><Property Name="SSLState" Value="0"/></Capabilities>
CurrentManagementPoint: ATLAS.APERTURE.SCI
Index: 1
Name: SMS:PS1
PolicyOrder: 100
PolicyRequestTarget: mp:[http]MP_PolicyManager
Protocol: OS
SigningCertificate:
Version: 9078
-----------------------------------

WHERE Condition Examples

"UniqueUserName='APERTURE\cave.johnson'"

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.