Share This Post

How to Use WMIC

By Garth Jones

In yesterday’s blog post, I talked about using Windows Management Instrumentation Command-line (WMIC) to troubleshoot WMI issues. You might be wondering about how to use WMIC for similar issues, so I thought that I would share the steps I take.

From a command prompt, type: wmic path <class name> get *

How to Use WMIC - Command Prompt

The command above will retrieve all instances from the es_mirv5 WMI class.

How to Use WMIC - Output

The output above is from WMIC. As you can tell, WMIC is much harder to read compared to the results displayed in wbemtest (see the example below). This is why, if I have the choice, I opt to use wbemtest.

How to Use WMIC - Wbemtest Output

Tip: If you want to read the data from WMIC in a nicer way, simply pipe the data into a text file and then read it within Notepad. For example, wmic path es_mirv5 get * > Mir.txt

Share This Post

Enhansoft specializes in providing software solutions, custom reports, and consulting services for retrieving your IT asset inventory. This is done within the system management area focusing on Microsoft System Center Configuration Manager (SCCM) by extending its asset information and reporting capabilities. Enhansoft is a Bronze sponsor of


  1. I <3 WMIC! Very powerful. Check out this site:

    I use it to uninstall/end processes in batch files for my SCCM deployments.

Leave a Reply