> ## Documentation Index
> Fetch the complete documentation index at: https://docs.specterops.io/llms.txt
> Use this file to discover all available pages before exploring further.

# local class-instances

> Get information on local WMI class instances

## 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.

> [!NOTE]
>
> ACLs are applied at the object class and instance level, so access may vary depending on your privileges.

## Syntax

```bash theme={null}
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

```bash Basic Query theme={null}
# Query SMS_Authority class instances
SharpSCCM local class-instances SMS_Authority
```

```bash Specific Properties theme={null}
# Query specific properties only
SharpSCCM local class-instances SMS_Authority -p Name -p CurrentManagementPoint
```

```bash With WHERE Condition theme={null}
# Filter results with a WHERE condition
SharpSCCM local class-instances CCM_InstalledComponent -w "Name='SmsClient'"
```

```bash Dry Run theme={null}
# See the WQL query without executing
SharpSCCM local class-instances SMS_Authority -z
```

## Output Format

The command outputs detailed information about class instances:

```text theme={null}
[+] 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

```sql Exact Match theme={null}
"UniqueUserName='APERTURE\cave.johnson'"
```

```sql Pattern Matching theme={null}
"UniqueUserName LIKE '%cave.johnson%'"
```

```sql Numeric Comparison theme={null}
"ResourceID > 1000"
```

## Common Use Cases

> [accordion] Site Information Discovery
>
> Query SMS\_Authority to discover management points and site codes for the local SCCM client.

> [accordion] Client Configuration Analysis
>
> Examine CCM\_\* classes to understand client configuration and installed components.

> [accordion] Targeted Data Extraction
>
> Use WHERE conditions to filter large datasets and extract specific information.

## Related Commands

* [`local classes`](https://docs.specterops.io/sharpsccm/commands/local/classes) - List available WMI classes
* [`local class-properties`](https://docs.specterops.io/sharpsccm/commands/local/class-properties) - Get class property definitions
* [`local query`](https://docs.specterops.io/sharpsccm/commands/local/query) - Execute custom WQL queries


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.