This article hasn't been updated for over 5 years. The information below may be obsolete.

WMIC Cheat Sheet

WMIC, is a command-line tool used to interact with WMI (Windows Management Instrumentation). It allows users to manage and gather information about Windows computers using a command-line interface.

This article provides a brief cheat sheet to some of the most command wmic sub-commands.

System Details

System Information
wmic bios get Manufacturer,Name,Version
Windows Version/Serial
wmic os list brief
Disk Information
wmic diskdrive get model,name,freespace,size
wmic logicaldisk get name
Installed Programs
wmic product list brief
Updates (missing patches)
wmic qfe list
Printer Information
wmic printer list status
wmci printerconfig list
Startup programs
wmic startup list full
For interactive mode just run
wmic

from within wmic, type "exit" to terminate.

Start / Stop process
wmic process call create "notepad.exe"
wmic process where name="notepad.exe" call terminate

Process Management

List running processes
wmic process list
wmic process list brief
wmic process list brief find "notepad.exe"
wmic process list full
Change process priority
wmic process where name="notepad.exe" call setpriority 64
Check environment variables
wmic environment list

User Management

wmic group list brief
wmic useraccount list
wmic sysaccount list

Remote Access

Run any command remote. For example:
wmic /node:<ip> /user:<user> /password:<password> os list brief
Enable RDP
wmic /node:<ip> /user:<user> /password:<password> RDToggle where ServerName=<server name> call SetAllowTSConnections 1