Using WMIC

WMIC is most easily used in interactive mode. However, for single operations or batched operations, non-interactive mode can be useful. See Invoking WMIC for details.

WMIC command-line help should be used to determine the available aliases and their verbs and switches.

Using aliases allows you to use WMI without understanding WMI schemas. If the default aliases are not sufficient for your needs but you want to use aliases or you want to make aliases available for other administrators, you can extend the aliases

Global verbs (which are available for all aliases) perform functions related to the current alias. Global switches are available to adjust the usage of WMIC. Alias-specific verbs and switches might also be available--see the online help (/?) for the alias for details.

Commands are available for WMIC-specific functions.

If you are comfortable with WMI schemas, you can use the WMI schemas directly with WMIC.

You should keep in mind the security implications of WMIC.

If you have trouble using WMIC, you can troubleshoot the problem.

When you are done with WMIC, you can use the Exit verb to exit WMIC.

When you understand how to use WMIC, you are ready to manage systems with WMIC 

Note

Ctrl-S can be used to pause output from any WMIC command at any time (any key will resume the output). Ctrl-C can be used to cancel the output (however, this will also terminate WMIC).

Use the /RECORD global switch to redirect WMIC output to a file.

Using WMIC on the local computer, you can connect to other computers with the /NODE global switch or within an alias file (if specified in the alias definition).



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