WMIC.exe is a process which handles Windows Management Instrumentation Commands. We can use this service to find some of the unsaid details or our computer. This is only for windows users.

All information are obtained via DOS commands. So first open the DOS prompt and come to C:/ root.

To fetch any property about ABC (an example) you have to write
WMIC ABC GET /VALUE

If this doesn't work for any item try this.
WMIC ABC LIST /FORMAT:TEXTVALUELIST



In place of ABC, actual parameters can be one of these
BASEBOARD- Base board management (motherboard or system board)
BIOS- BIOS management (Basic input/output services)
BOOTCONFIG- Boot configuration
CDROM- CD-ROM
COMPUTERSYSTEM- Computer system [CALL/SET]
CPU- CPU
CSPRODUCT- Computer system product information from SMBIOS
DESKTOP- User's Desktop
DESKTOPMONITOR- Desktop Monitor
DEVICEMEMORYADDRESS- Device memory addresses
DISKDRIVE- Physical disk drive
DMACHANNEL- Direct memory access (DMA) channel
IDECONTROLLER- IDE Controller
LOGON- LOGON Sessions.
MEMCACHE- Cache memory
MEMORYCHIP- Memory chip information
MEMLOGICAL- System memory, layout and availability
MEMPHYSICAL- Physical memory management
NETCLIENT- Network Client management
NETLOGIN- Network login information for a particular user
NTEVENT- NT Event Log.
OS- Operating System/s
PAGEFILESET- Page file settings
PARTITION- Partitioned areas of a physical disk
PORT- I/O ports
PORTCONNECTOR- Physical connection ports
PRINTER- Printer device [CALL/SET]
PROCESS- Processes [CALL]*
PRODUCT- Windows Installer [CALL]
QFE- Quick Fix Engineering (patches)
REGISTRY- Computer system registry [SET]
SERVER- Server information
SOUNDDEV- Sound Devices
STARTUP- Commands that run automatically when users logon
SYSACCOUNT- System account
SYSDRIVER- System driver for a base service. [CALL]
SYSTEMENCLOSURE- Physical system enclosure
SYSTEMSLOT- Physical connection points including ports, slots and peripherals, and proprietary connections points
TEMPERATURE- Temperature sensor (electronic thermometer)
TIMEZONE- Time zone data
UPS- Uninterruptible power supply (UPS)
USERACCOUNT- User accounts [CALL/SET]
VOLTAGE- Voltage sensor (electronic voltmeter) data
VOLUME- Local storage volume [CALL/SET]


Examples
WMIC OS GET /VALUE
WMIC BASEBOARD LIST /FORMAT:TEXTVALUELIST
WMIC BIOS GET NAME, SERIALNUMBER, VERSION
WMIC CSPRODUCT GET VENDOR, NAME, IDENTIFYINGNUMBER
WMIC PARTITION GET NAME, TYPE, SIZE
WMIC DISKDRIVE GET MODEL, NAME, SIZE

Note
WMIC is available on Windows XP, Vista, 7 or later versions of Windows.
To run WMIC requires administrator rights.

Reference taken from
http://ss64.com/nt/wmic.html