snippetbashTip
wmic — Interactive shell for detailed information about running processes. More information: <https://learn
Viewed 0 times
shellcommanddetailedwmiccliinformationinteractivefor
windows
Problem
How to use the
wmic command: Interactive shell for detailed information about running processes. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/wmic>.Solution
wmic — Interactive shell for detailed information about running processes. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/wmic>.Fundamental grammar:
wmic {{alias}} {{where_clause}} {{verb_clause}}Show brief details about the currently running processes:
wmic process list briefShow full details about the currently running processes:
wmic process list fullAccess specific fields such as process name, process ID, and parent process ID:
wmic process get {{name,processid,parentprocessid}}Display information about a specific process:
wmic process where {{name="example.exe"}} list fullDisplay specific fields for a specific process:
wmic process where processid={{pid}} get {{name,commandline}}Kill a process:
wmic process {{pid}} deleteCode Snippets
Fundamental grammar
wmic {{alias}} {{where_clause}} {{verb_clause}}Show brief details about the currently running processes
wmic process list briefShow full details about the currently running processes
wmic process list fullAccess specific fields such as process name, process ID, and parent process ID
wmic process get {{name,processid,parentprocessid}}Display information about a specific process
wmic process where {{name="example.exe"}} list fullContext
tldr-pages: windows/wmic
Revisions (0)
No revisions yet.