WMI Command-line

The WMI command-line (WMIC) provides you a simple command-line interface to Windows Management Instrumentation (WMI). WMIC provides a simple interface to WMI so you can take advantage of WMI to manage computers running Microsoft Windows. WMIC interoperates with existing shells and utility commands, and can be easily extended by scripts or other administration-oriented applications.

WMIC allows you to:

Browse the WMI schemas and query their classes and instances, usually using "aliases" that make WMI more intuitive.

Work with the local computer, remote computers, or multiple computers in a single command.

Customize aliases and output formats to suit your needs.

Create and execute scripts based on WMIC.

WMI Providers are available to allow WMI to manage a wide variety of hardware components, operating system subsystems, and application systems. WMIC can be used with all the schemas implemented by those WMI Providers.

WMIC can be used from any computer with WMIC enabled to remotely manage any computer with WMI. WMIC does not have to be available on the remotely managed computer in order for WMIC to manage it.

Scenarios

You can use WMIC to ease tasks in the following typical scenarios:

Local management of a computer--you are at the computer and use the WMIC command to manage it.

Remote management of a computer--you are at one computer and use WMIC to manage another computer.

Remote management of multiple computers--you are at on one computer and use WMIC to manage multiple computers with a single command.

Remote management of a computer (using a remote session)--you use a remote sessioning technology (such as Telnet or Terminal Services) to connect to a remote computer and manage it with WMIC.

Automated management using administrative scripting--you use WMIC to write a simple management script to automate the management of a computer (local, remote, or multiple computers--serially or simultaneously).

Aliases

The WMI infrastructure is accessible to you as you use WMIC through intermediate facilitators called aliases. Aliases are used to capture the features of a WMI class that are relevant to some specific task such as disk or network administration. Aliases can be used to provide better names for WMI classes, properties, and methods, or to arrange properties in useful output formats. The output formats can include specific property values or can be formatted in a manner appropriate to some specific presentation strategy or function. For example, an alias might have a "BRIEF" format that will list only property values essential for the identification of the objects visible through the alias. Management data is retrieved in XML format and processed by built-in or custom XSL output formats.

See also

WMI overview 
Invoking WMIC 
Using WMIC 
Extending Aliases 
Reference 
Managing systems with WMIC 
Windows Management Instrumentation Command-line (WMIC) tool 



© 2017 Microsoft Corporation. All rights reserved. Contact Us |Terms of Use |Trademarks |Privacy & Cookies