wmic - windows management interface

wmic.exe is the command line interface to the WMI APP's.

wmic.exe is available on Windows XP Pro. It is not available on Windows 2000 or XP Home.

Here are two good examples of usage:

C:\>wmic process get workingsetsize,commandline /format:csv

This lists the program and the memory usage

C:\>wmic process | sort

alg.exe              C:\WINDOWS\System32\alg.exe
ccApp.exe            "C:\Program Files\Common Files\Symantec Shared\ccApp.exe"
ccEvtMgr.exe         "C:\Program Files\Common Files\Symantec Shared\ccEvtMgr.exe"
ccSetMgr.exe         "C:\Program Files\Common Files\Symantec Shared\ccSetMgr.exe"
cmd.exe              "C:\WINDOWS\system32\cmd.exe"
csrss.exe            C:\WINDOWS\system32\csrss.exe \
DefWatch.exe         "C:\Program Files\Symantec AntiVirus\DefWatch.exe"
explorer.exe         C:\WINDOWS\Explorer.EXE
lsass.exe            C:\WINDOWS\system32\lsass.exe
mozilla.exe          "C:\PROGRA~1\MOZILLA.ORG\MOZILLA\MOZILLA.EXE" -turbo
nvsvc32.exe          C:\WINDOWS\system32\nvsvc32.exe
pine.exe             "D:\Program Files\pine\pine.exe"
Rtvscan.exe          "C:\Program Files\Symantec AntiVirus\Rtvscan.exe"
rundll32.exe         "C:\WINDOWS\system32\RUNDLL32.EXE" \
services.exe         C:\WINDOWS\system32\services.exe
smss.exe             \SystemRoot\System32\smss.exe
sort.exe             sort
spoolsv.exe          C:\WINDOWS\system32\spoolsv.exe
svchost.exe          C:\WINDOWS\system32\svchost -k DcomLaunch
svchost.exe          C:\WINDOWS\system32\svchost -k rpcss
svchost.exe          C:\WINDOWS\System32\svchost.exe -k LocalService
svchost.exe          C:\WINDOWS\System32\svchost.exe -k netsvcs
svchost.exe          C:\WINDOWS\System32\svchost.exe -k NetworkService
VPTray.exe           "C:\PROGRA~1\SYMANT~1\VPTray.exe"
wdfmgr.exe           C:\WINDOWS\system32\wdfmgr.exe
winlogon.exe         winlogon.exe
wmic.exe             wmic process
wmiprvse.exe         C:\WINDOWS\System32\wbem\wmiprvse.exe


wmic:root\cli>partition get name,bootable,size,type
Bootable  Name                   Size         Type
TRUE      Disk #0, Partition #0  4194860544   Installable File System
          Disk #0, Partition #1  9475522560   Extended Partition
TRUE      Disk #1, Partition #0  8389753344   Unknown
          Disk #1, Partition #1  11630545920  Unknown

More Examples

Remote wmi Use

Connecting to WMI on a Remote Computer