What is wmic

Last updated: April 1, 2026

Quick Answer: WMIC (Windows Management Instrumentation Command-line) is a command-line tool that executes WMI queries to retrieve system information, manage hardware, and automate administrative tasks on Windows computers.

Key Facts

Overview

WMIC (Windows Management Instrumentation Command-line) is a legacy command-line utility that provides direct access to Windows Management Instrumentation (WMI) from the command prompt or scripts. It allows system administrators to query system information, manage resources, and automate administrative tasks without graphical user interfaces. WMIC has been a powerful tool for Windows system administration for decades.

Basic Syntax and Usage

WMIC operates using a straightforward syntax where users specify a WMI class, an action (like list or get), and optional parameters. For example, wmic os get caption retrieves the operating system name. The tool supports numerous WMI classes including LogicalDisk, Process, Service, ComputerSystem, and NetworkAdapterConfiguration, enabling administrators to access virtually any aspect of Windows system information.

Common Administrative Tasks

Administrators frequently use WMIC to list installed software, retrieve hardware specifications, manage running processes, configure network settings, and schedule automated tasks. WMIC excels at collecting inventory data across multiple computers on a network and generating reports about system configurations. It can also execute methods on WMI objects, such as terminating a process or disabling a network adapter.

Deprecation and Modern Alternatives

Microsoft deprecated WMIC starting with Windows 11 and Windows Server 2022, recommending PowerShell as the preferred replacement. PowerShell provides more powerful scripting capabilities and better integration with modern Windows management tools. However, WMIC remains functional in older Windows versions and continues to work in current systems, though users are encouraged to transition to PowerShell for future compatibility.

Related Questions

How do I list all installed programs using WMIC?

Use the command 'wmic product list brief' to display installed programs, or 'wmic product list full' for detailed information. This queries the Win32_Product WMI class to retrieve software inventory data.

What is the difference between WMIC and PowerShell?

WMIC is a specialized command-line tool for WMI queries with simpler syntax, while PowerShell is a full scripting language offering more flexibility and advanced capabilities. PowerShell has superseded WMIC as the standard Windows administration tool.

Can I use WMIC for remote computer administration?

Yes, WMIC supports remote connections using the /node parameter to query or manage computers on a network, though PowerShell Remoting is generally preferred for modern environments.

Sources

  1. Microsoft - Using WMI CC-BY-4.0
  2. Wikipedia - Windows Management Instrumentation CC-BY-SA-4.0