How to Use the wmic Command to Get System Information in Windows 11

The Power of Windows Management Instrumentation

If you need to find out the exact serial number of your motherboard, the physical speed of your RAM sticks, or the specific build version of Windows 11 you are running, opening the graphical “System Information” app is often insufficient. It doesn’t always show low-level hardware identifiers, and you cannot easily export the data to a spreadsheet.

For decades, system administrators have relied on the Windows Management Instrumentation Command-line (wmic). This powerful tool queries the WMI database—the core architecture Windows uses to manage hardware and software—and outputs incredibly detailed, raw system information directly into the command prompt.

Step 1: Open the Command Prompt

While many basic wmic commands can be run as a standard user, querying deep hardware identifiers often requires elevated privileges.

  1. Press the Windows Key, type cmd.
  2. Right-click on Command Prompt and select Run as administrator.

Step 2: Retrieving Motherboard and BIOS Information

If you are planning to upgrade your CPU or update your firmware, you absolutely must know your exact motherboard model and current BIOS version.

To find the manufacturer, product model, and serial number of your motherboard (baseboard), run:

wmic baseboard get product,Manufacturer,SerialNumber

To find the exact version number of your currently installed BIOS, run:

wmic bios get smbiosbiosversion,manufacturer,name

Step 3: Checking RAM Capacity and Speed

If you want to buy more RAM, you need to know how many sticks are currently installed, their physical capacity, and their MHz speed. You can get this without opening the computer case.

Run the following command:

wmic memorychip get capacity,speed,manufacturer,partnumber

The terminal will output a list. If you have two sticks of RAM installed, you will see two rows of data. The capacity is displayed in raw bytes, so a number like 17179869184 equals exactly 16 Gigabytes.

Step 4: Outputting the Data to a File

If you are auditing 50 computers in an office, reading the output on the screen is useless; you need to save it.

You can use the /output flag to force wmic to write its data directly into a text file or an HTML file for easier reading.

wmic /output:C:\audit_report.html computersystem get /format:hform

This command queries the general “computersystem” database, formats the output as an HTML table (hform), and saves it directly to the root of the C: drive. If you open that HTML file in a web browser, you will see a beautifully formatted table containing the PC’s name, domain, manufacturer, and total physical memory.

Important Note on Deprecation

It is important to note that Microsoft has officially deprecated the wmic command-line utility in modern builds of Windows 11, favoring the newer PowerShell Get-WmiObject and Get-CimInstance cmdlets. However, because wmic is deeply ingrained in thousands of legacy batch scripts, it remains available as an optional feature in Windows 11, and the underlying WMI database it queries is still fully supported.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.