stop-process Verified current stable Not installed? System Operations

Stop Process / Stop Process And Wait Windows

Stop Process And Wait Windows

Stop Process command syntax to stop process and wait windows. Copyable examples, output expectations, and common mistakes.

$
Terminal
Stop-Process -Id <process_id>; Wait-Process -Id <process_id>

Command Breakdown

What each part is doing

Stop-Process
Base Command
The executable that performs this operation. Here it runs Stop Process before the shell applies any redirect operators.
<process_id>
process id
The value supplied for process id.
-Id
Command Option
Tool-specific option used by this command invocation.

Alternative Approaches

Comparable commands in other tools

Alternative system operations tools for the same job.