WMI

NOTE: CIM is the open standard of WMI, is cross-platform, and more efficient.

WMI and CIM

WMIC Commands

  1. wmic process list full
    1. List all processes
  2. wmic process get name,parentprocessid,processid
    1. Shows the ID and process ID of each process running
  3. wmic process where processid=[PID] get commandline
    1. See what commands were used to launch the process
      1. Processes started through mouse/keyboard interaction list the full path of the executable
      2. Processes started through command line tend to only show the name of the executable and any switches used, but it's anything the person enters into the CLI
      3. Check the end of the BHIS-SOCC-lab-WindowsCLI for details

Metadata

Sources

Windows Management Instrumentation - Win32 apps | Microsoft Learn
CIM | DMTF
Should I use CIM or WMI with Windows PowerShell? - Scripting Blog [archived]

Tags

#tools_win