Managing systems with WMIC

The following examples and best practices will help you to use WMIC:

process where (processID>300) list brief

This demonstrates that you can list all processes on specified computers where the ProcessID is greater than 300, but limit the output to core information on those processes.


This demonstrates that you can add to the list of computers you want to retrieve information from (presuming you satisfy the security requirements).

class win32_processor get MaxClockSpeed

This demonstrates that you can list only particularly useful properties from a class.

Simple reporting--you can use WMIC to do a query for the desired data, and dump the formatted output to an HTM file, which can be served to users like any other Web page. This can be done in in a batch procedure and thus automated.

Quick queries on the current computer--you can query for useful computer troubleshooting information, such as installed software.

Transferring WMI data between computers--you can output data to a MOF formatted file and then use Mofcomp.exe to compile the file on another computer, importing it to that computer.

Monitoring with the /Every switch--you can watch for dynamic processes on the computer, such as services being stopped.

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