How to WMIC ?

What Is WMIC ?

WMIC command line

WMIC is the abbreviation of Windows Management Interface Command, is a simple command prompt tool that returns information about the system you are running it on. WMIC extends WMI for operation from several command-line interfaces and through batch scripts. Before WMIC, you used WMI-based applications, the WMI Scripting API, or tools such as CIM Studio to manage WMI-enabled computers. WMIC is more intuitive than WMI, in large part because of aliases. Aliases take simple commands that you enter at the command line, then act upon the WMI namespace in a predefined way, such as constructing a complex WMI Query Language (WQL) command from a simple WMIC alias Get command. The WMIC program can return useful information about your system, control running programs and generally manage just about every aspect of your 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

then, you will get:

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

In order to do so, simply use the /output: "< filepath & name >" switch. Insert this right after the wmic, but before any other part of the command: for instance, wmic /output:"C:\output.txt" , then the output will export the output.txt file.



NEXT.....How to recover deleted files