Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Kill (command)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
====Examples==== Find all processes beginning with the letter "p" that were developed by Microsoft and use more than 10 MB of memory and kill them: <syntaxhighlight lang="ps1con"> PS C:\> ps p* | where { $_.Company -like "Microsoft*" -and $_.WorkingSet -gt 10MB } | kill -confirm Confirm Are you sure you want to perform this action? Performing operation "Stop-Process" on Target "powershell (6832)". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): A PS C:\> </syntaxhighlight> Here is a simpler example, which asks the process [[Windows Explorer|Explorer.exe]] to terminate: <syntaxhighlight lang="ps1con">PS C:\> taskkill /im explorer.exe</syntaxhighlight> This example forces the process to terminate: <syntaxhighlight lang="ps1con">PS C:\> taskkill /f /im explorer.exe</syntaxhighlight> Processes can also be killed by their [[Process identifier|PID number]]: <syntaxhighlight lang="ps1con">PS C:\> taskkill /pid 3476</syntaxhighlight>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)