wmic

Windows Management Instrumentation Command-line

What Does It Do?

The WMIC (Windows Management Instrumentation Command-line) provides a command-line interface to WMI. It allows administrators to query system information, manage hardware and software, and perform system configuration tasks without needing a graphical interface.

Think of WMIC as a Swiss Army knife for system information gathering. Need to know what CPU is installed? What software is running? Which services are active? WMIC can answer all these questions and more. It's invaluable for scripting, remote administration, and creating detailed system inventories.

Advertisement

[ Insert Google AdSense Banner Code Here ]

When Should I Use It?

Hardware Inventory

Gather detailed information about CPU, RAM, disks, and other hardware.

Software Auditing

List installed programs, their versions, and installation dates.

Service Management

Query and manage Windows services and their states.

Process Monitoring

View running processes with detailed resource usage information.

Common Commands

wmic bios get /format:list

Display detailed BIOS information in list format.

wmic cpu get name,numberofcores

Show CPU model and number of cores.

wmic os get caption,version

Display operating system name and version.

wmic service where "state='running'" get name

List all running Windows services.

wmic process list brief

Show running processes with essential information.

wmic product get name,version

List installed software and versions (may take time).

Pro Tip: WMIC is Deprecated

WMIC is deprecated in Windows 11 and later versions. Microsoft recommends using PowerShell cmdlets instead:

# Instead of: wmic bios get Get-CimInstance -ClassName Win32_BIOS # Instead of: wmic cpu get Get-CimInstance -ClassName Win32_Processor

However, WMIC still works on most systems and remains useful for quick queries and legacy scripts. Consider learning PowerShell equivalents for future-proofing your skills.

Try It Yourself

Practice WMIC commands in the interactive terminal below: