Wmic: Help New
Example: process
Inside WMIC interactive mode:
wmic:root\cli> process /?
Output shows:
Example outside interactive mode (direct command): wmic help new
wmic process get /?
This lists all retrievable properties for Win32_Process.
wmic process where "name='cmd.exe' and commandline like '%ping%'" get processid
Get-WmiObject Win32_Process | Select ProcessId, Name, CommandLine Output shows:
The modern way to use WMIC is with aliases (friendly names for WMI classes).
Instead of:
wmic path win32_process get name
Use:
wmic process get name
| WMIC command | PowerShell equivalent |
|--------------|------------------------|
| wmic process list brief | Get-Process |
| wmic os get caption,installdate | Get-CimInstance Win32_OperatingSystem \| Select-Object Caption, InstallDate |
| wmic cpu get name | Get-CimInstance Win32_Processor \| Select-Object Name |
To access WMIC, open a Command Prompt or PowerShell as an administrator and type: Use: wmic process get name
wmic
This will open the WMIC command-line interface. You can then use various commands to perform different tasks.