How to WMIC ?

WMIC, short for Windows Management Interface Command, is a straightforward command prompt utility that provides valuable information about the system on which it is executed. Expanding on the capabilities of WMI (Windows Management Instrumentation), WMIC allows for operation from various command-line interfaces and batch scripts.

WMIC command line

Prior to the introduction of WMIC, managing WMI-enabled computers involved using WMI-based applications, the WMI Scripting API, or tools like CIM Studio. WMIC, however, offers enhanced user-friendliness compared to WMI, primarily due to the implementation of aliases. These aliases enable users to execute simple commands at the command line, which then interact with the WMI namespace in a predefined manner, such as constructing complex WMI Query Language (WQL) commands from concise WMIC alias Get commands. This versatile program empowers users to access insightful system information, control running programs, and effectively manage various aspects of their PC.

Common WMIC queries

How To Find Out The Model Of Your Computer ?

In order to find out the model name of a machine using WMI, simply follow the guide below:

Go into a command prompt and Type in

>WMIC ComputerSystem GET Model //Output:Model HP Notebook
how get model of my computer How to Find Your Computer Name ?
>wmic computersystem get name,systemtype //Output: Name : yourcomputername SystemType : x64-based PC
How to Find the Serial Number of your computer ?
>wmic bios get serialnumber

One more command will help you to identify the Serial Number of your Computer

>wmic csproduct get identifyingnumber
How to Find the MAC Address of Your Computer ?
>wmic nic get macaddress,description
How to Check Your Motherboard Model Number ?
>wmic baseboard get product,Manufacturer,version,serialnumber
How to check physical memory of your computer ?
>wmic COMPUTERSYSTEM get TotalPhysicalMemory
How to get all running programs and memory usage ?
>wmic process get workingsetsize,commandline

This lists the program and the memory usage

How to get partition name size and type ?
>wmic partition get name,size,type
How to get computer manufacturer ?
>WMIC COMPUTERSYSTEM GET MANUFACTURER //Output : HP
How get mode version ?
>wmic csproduct get version //Output :Type1ProductConfigId

System Information

This program can also provide details on many other aspects of your system.

>wmic service list brief
>wmic process list brief
>wmic startup list brief

will list your installed software, services, running processes and Windows startup programs, for instance.

Process Management

Using WMIC you can manage your computer process like, close all the instances of a particular program. For example, if you want to shut down all FireFox windows, for instance, then the command:

>wmic process where name="firefox.exe" call terminate

Write WMIC output to file

get all process name