Stop a Windows PowerShell Process
Problem
You want to stop (or kill) a process on the system.
Solution
To stop a process, use the StopProcess cmdlet, as shown in Example 212.
Example 212. Stopping a process using the StopProcess cmdlet
PS >notepad PS >GetProcess Notepad
Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName
42 3 1276 3916 32 0.09 3520 notepad
PS >StopProcess ProcessName notepad PS >GetProcess Notepad
- Read more about Stop a Windows PowerShell Process
- Log in or register to post comments