Skip to main content
Most situational awareness commands require you to first set a target device using the interact [ResourceID] command. You can find ResourceIDs using the database query commands.

System Information Commands

administrators

Description

Query the interactive device for members of the device’s local administrators group.

Usage

Example

console_users

Description

Returns data detailing the users that have logged on to the target system.

Usage

Example

sessions

Description

List active sessions on the interactive device.

Usage

Example

Hardware Information Commands

disk

Description

List available disk drives and space on the interactive system.

Usage

Example

list_disk

Description

Lists available disk drives on the interactive system.

Usage

Example

System Configuration Commands

environment

Description

List environment variables from the interactive system.

Usage

Example

ipconfig

Description

Run ipconfig on the interactive host and retrieve networking info.

Usage

Example

osinfo

Description

Query operating system and architecture info for the interactive device.

Usage

Example

Process and Service Information Commands

ps

Description

List current running processes for the interactive device.

Usage

Example

services

Description

List current running services on the interactive device.

Usage

Example

software

Description

List currently installed software on the interactive device.

Usage

Example

Network Information Commands

shares

Description

List all available file shares on the interactive device.

Usage

Example

File System Commands

cd

Description

Change directories on the command line. This is required for both the ls and cat commands.

Usage

Example

ls

Description

Will list the contents of the current directory represented on the command line. Defaults to C:. You must issue a cd command to another known directory (i.e. cd C:\Users) to list the contents of that Users directory and so on.

Usage

Example

cat

Description

Display the contents of a file on the interactive device. The command line must be configured with the path to the file contents directory. For example, if the file you want to display is in “C:\Windows\Temp”, you must issue a cd command to configure the command line with that file path in addition to the interactive device.

Usage

Example

SCCM limits the result returned from scripts to 4KB. If the file size is larger it will be truncated or unreliable. Additionally, since scripts are used, you may need to supply alternate credentials.
All situational awareness commands operate through CMPivot and may take 10+ seconds to complete as they wait for the target system to call home and execute the commands.