wmic
Windows CMD · System · available in the simulator
What it does
Windows Management Instrumentation (WMI) command-line utility.
Syntax
wmic [alias] [get|where|call] ...
Options and parameters
get CAMPOSelects properties to display.
where CONDFilters results based on condition.
/node:HOSTExecutes on a remote host.
getRetrieves the specified properties for the alias.
wmic os get caption,versionwhereFilters the objects to act upon.
wmic process where name='notepad.exe' get processid/nodeExecutes the query on the specified computers.
/userUser name for the remote connection.
/passwordPassword for the remote connection.
/namespaceWMI namespace to use.
/outputRedirects output to a file.
/formatFormats the output, for example with /format:csv.
Usage examples
wmic cpu get namewmic os get versionwmic logicaldisk get name,size,freespacewmic os get caption,versionwmic process where name='notepad.exe' get processid
Notes and common mistakes
- WMIC is deprecated in modern Windows versions; Microsoft recommends using PowerShell CIM cmdlets.