The WMI command-line (WMIC) utility provides a command-line interface for Windows Management Instrumentation (WMI). WMIC is compatible with existing shells and utility commands.

Useful wmic commands

CPU

wmic cpu get * /format:list
wmic cpu get NumberOfCores,NumberOfLogicalProcessors /format:List

Memory

wmic memorychip get *
wmic memorychip get * /format:list
wmic memorychip get devicelocator, manufacturer
wmic memorychip get devicelocator, serialnumber

Get memory capacity

wmic memorychip get devicelocator, capacity

Disk

wmic diskdrive get Name, Manufacturer, Model, InterfaceType, MediaType, SerialNumber
wmic diskdrive get name,model,size

Motherboard

wmic baseboard get product,Manufacturer,version,serialnumber

Bluetooth

wmic path win32_pnpentity where service="BTHUSB" get /format:list

Powerplan

WARNING: The namespace may be different on different versions of Windows. The example below
works for Windows 10.

wmic /namespace:\\root\cimv2\power PATH Win32_PowerPlan get * /format:list

GPU

wmic PATH Win32_VideoController get * /format:list

Cooling Fan

This may not work as it depends on your BIOS.

wmic /namespace:\\root\cimv2\power PATH Win32_PowerPlan get * /format:list

[source,csharp]
—-
using System;
using System.Text;
—-

 

More Useful Examples

How to Get Your System Serial Number

If you want to check your system serial number then you can use the following

C:\>wmic bios get serialnumber

How to Get the Total Number of CPU Cores

If you want to check the total number of CPU Cores in your system use the following

C:\>wmic cpu get numberofcores

How to Get the System Bios Version

If you want to check the System Bios Version use the following

C:\>wmic bios get version

How to Get the List of all running Processes

If you want to check all the current running processes use the following.

C:\>wmic process list

How to Get the Windows OS version

If you want to check the Windows OS version then you can try the following.

C:\>wmic os get version

How to Get the List of all Installed Applications

If you want get the list of all the installed applications in your Windows system then you can use this

C:\>wmic product get name

Start an Application

If you want to start an application in Windows  then you can use this

C:\>wmic process call create "calc.exe"

Terminate an Application

If you want to terminate an application in Windows  then you can use this

C:\>wmic process where name=”calc.exe” call terminate

Find what starts on boot

If you want to display everything that starts at boot on your system you can try this

C:\>wmic STARTUP GET Caption, Command, User

Get Startup List

This will display the startup list

C:\>wmic startup list full

Service Management

C:\>wmic service where caption="DHCP Client" call changestartmode "Disabled"

Get Start mode of Services

This will display the startmode of the services on your system

C:\>Wmic service get caption, name, startmode, state

Get Running Services Information

This will display information about the services running on the system

C:\>Wmic service where (state="running") get caption, name, startmode, state