Back to Blog
Arnošt Havelka

WMIC Mastery

Query and manage Windows systems with WMIC.

Start Interactive Lesson
WMIC Mastery

WMIC Mastery

WMIC (Windows Management Instrumentation Command-line) is a powerful tool that provides access to detailed system information and management capabilities. From listing running processes to querying hardware details, WMIC gives administrators a comprehensive view of the system — all from the command line.

Usage:WMIC
alias
verb
OS
Queries operating system information.
PROCESS
Lists and manages running processes.
CPU
Displays processor details.
DISKDRIVE
Shows physical disk information.

Querying System Information

Use WMIC OS to retrieve information about the operating system, including version, build number, and architecture.

Command Prompt
C:\Users\User>WMIC OS GET Caption,Version,OSArchitecture

Managing Processes

The WMIC PROCESS alias is invaluable for listing running processes, checking resource usage, and even terminating misbehaving applications.

Command Prompt
C:\Users\User>WMIC PROCESS WHERE "Name='notepad.exe'" GET ProcessId,Name,CommandLine

Knowledge Check

1 / 2

Which WMIC command shows the OS version?

References

These Microsoft Learn and Windows documentation links provide authoritative details for the commands used in this article.

Up Next

Introduction to Zoxide

A smarter way to navigate.