| Windows 7: Kill process with cmd |
13 Oct 2011
|
#1 | | Windows 7 Home Premium x64, Mac OS X 10.6.2 x64 Boston, MA |
Kill process with cmd What would be the command to kill a process like explorer.exe or wininit.exe through cmd? | My System Specs |
| System Manufacturer/Model Number Toshiba Satellite L505D-S9565 OS Windows 7 Home Premium x64, Mac OS X 10.6.2 x64 CPU AMD Athlon X2 Dual-Core 2.1 GHz Motherboard Toshiba Built-In with Insyde H20 BIOS 1.40 Memory 4 GB DDR2 800 MHz Graphics Card ATI Radeon HD Mobility 3100 Graphics 256MB to 1468 MB Shared Sound Card Realtek Mobile ALC272 HD Audio Monitor(s) Displays 15.6" TFT LCD with TruBrite, Samsung 1080p HDTV Screen Resolution 1366x768, 1920x1080 Keyboard Built-in Mouse Build-in Symantics SmartTouch Pad PSU N/A Case N/A Cooling Built-in/Open window in winter :P Hard Drives ❶:Main: Toshiba 250 GB SATA 5400 RPM Internet Speed 55 MB/sec Down, 9 MB/sec Up Other Info ❷:Backup: Seagate FreeAgent Desk USB 2.0 5400 RPM
❸:Media: Toshiba 640 GB USB 2.0 5400 RPM Portable Edition |
13 Oct 2011
|
#2 | | |
Code: C:\Windows\system32>taskkill /?
TASKKILL [/S system [/U username [/P [password]]]]
{ [/FI filter] [/PID processid | /IM imagename] } [/T] [/F]
Description:
This tool is used to terminate tasks by process id (PID) or image name.
Parameter List:
/S system Specifies the remote system to connect to.
/U [domain\]user Specifies the user context under which the
command should execute.
/P [password] Specifies the password for the given user
context. Prompts for input if omitted.
/FI filter Applies a filter to select a set of tasks.
Allows "*" to be used. ex. imagename eq acme*
/PID processid Specifies the PID of the process to be terminated.
Use TaskList to get the PID.
/IM imagename Specifies the image name of the process
to be terminated. Wildcard '*' can be used
to specify all tasks or image names.
/T Terminates the specified process and any
child processes which were started by it.
/F Specifies to forcefully terminate the process(es).
/? Displays this help message.
Filters:
Filter Name Valid Operators Valid Value(s)
----------- --------------- -------------------------
STATUS eq, ne RUNNING |
NOT RESPONDING | UNKNOWN
IMAGENAME eq, ne Image name
PID eq, ne, gt, lt, ge, le PID value
SESSION eq, ne, gt, lt, ge, le Session number.
CPUTIME eq, ne, gt, lt, ge, le CPU time in the format
of hh:mm:ss.
hh - hours,
mm - minutes, ss - seconds
MEMUSAGE eq, ne, gt, lt, ge, le Memory usage in KB
USERNAME eq, ne User name in [domain\]user
format
MODULES eq, ne DLL name
SERVICES eq, ne Service name
WINDOWTITLE eq, ne Window title
NOTE
----
1) Wildcard '*' for /IM switch is accepted only when a filter is applied.
2) Termination of remote processes will always be done forcefully (/F).
3) "WINDOWTITLE" and "STATUS" filters are not considered when a remote
machine is specified.
Examples:
TASKKILL /IM notepad.exe
TASKKILL /PID 1230 /PID 1241 /PID 1253 /T
TASKKILL /F /IM cmd.exe /T
TASKKILL /F /FI "PID ge 1000" /FI "WINDOWTITLE ne untitle*"
TASKKILL /F /FI "USERNAME eq NT AUTHORITY\SYSTEM" /IM notepad.exe
TASKKILL /S system /U domain\username /FI "USERNAME ne NT*" /IM *
TASKKILL /S system /U username /P password /FI "IMAGENAME eq note*" | My System Specs | | System Manufacturer/Model Number Alienware Aurora ALX R4 OS Windows 7 x64 (SP1) CPU Intel Core i7-3930K (3.2GHz, Turbo 4GHz) Motherboard Alienware Aurora-R4 x79 Memory 4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz) Graphics Card Nvidia Geforce GTX 690 (Stock) Sound Card RealTek Integrated Audio Monitor(s) Displays Dell UltraSharp U3011 Screen Resolution 2560x1600 Other Info Dell Inspiron Mini 10v (Intel Atom N270 1.6 GHz; 1GB; Windows 7 Ultimate) |
14 Oct 2011
|
#3 | | Windows 7 Ultimate SP1 x64 Macedonia |
^^
Here's tutorial for that on SF . Task Management | My System Specs | | OS Windows 7 Ultimate SP1 x64 CPU Intel Pentium G630 @2.7GHz 3MB Motherboard Asus P8H61-M LX3 PLUS Memory Corsair 4GB DDR3 / 1066MHz 9-9-9-24 2T Graphics Card Intel HD Graphics Sound Card Integrated Monitor(s) Displays Philips 192EL Screen Resolution 1366 x 768 Keyboard Delux K5108 Mouse Genius PSU Hantol 500W Case Delux costumized... Cooling 120mm Hantol, Spire 80mm Hard Drives WD Caviar Blue 500GB / 16MB Internet Speed 15 Mbit Other Info Genius SW-2.1 355 Speakers,Camera,Joystick
Asus K55VJ(i5 3210, GT635M / 2GB, 8GB DDR3, 500GB HDD) |
14 Oct 2011
|
#4 | | Windows 7 Home Premium x64, Mac OS X 10.6.2 x64 Boston, MA |
When I use taskkill or tasklist to kill a process, it seems to bring up a dialog asking what to do with windows (shutdown, hibernate, logoff etc.) instead of killing the process. Tested with explorer.exe | My System Specs | | System Manufacturer/Model Number Toshiba Satellite L505D-S9565 OS Windows 7 Home Premium x64, Mac OS X 10.6.2 x64 CPU AMD Athlon X2 Dual-Core 2.1 GHz Motherboard Toshiba Built-In with Insyde H20 BIOS 1.40 Memory 4 GB DDR2 800 MHz Graphics Card ATI Radeon HD Mobility 3100 Graphics 256MB to 1468 MB Shared Sound Card Realtek Mobile ALC272 HD Audio Monitor(s) Displays 15.6" TFT LCD with TruBrite, Samsung 1080p HDTV Screen Resolution 1366x768, 1920x1080 Keyboard Built-in Mouse Build-in Symantics SmartTouch Pad PSU N/A Case N/A Cooling Built-in/Open window in winter :P Hard Drives ❶:Main: Toshiba 250 GB SATA 5400 RPM Internet Speed 55 MB/sec Down, 9 MB/sec Up Other Info ❷:Backup: Seagate FreeAgent Desk USB 2.0 5400 RPM
❸:Media: Toshiba 640 GB USB 2.0 5400 RPM Portable Edition |
14 Oct 2011
|
#5 | | Windows 7x64 Home Premium SP1 x 2 Australia |
what specific process are you trying to kill. | My System Specs | | System Manufacturer/Model Number Own build (+ Recased Acer Aspire x1800) OS Windows 7x64 Home Premium SP1 x 2 CPU Intel i7 2600k Motherboard ASUS P8Z68 Deluxe Memory G.Skill Ripjaws (DDR3-1600) 2x4GB Graphics Card Nvidia GeForce GTS 450; Intel HD Graphics 3000(GT2+) Monitor(s) Displays Dell Ultrasharp IPS panel U2311H, Samsung SyncMaster P2350 Screen Resolution 1920x1080 Keyboard Logitech MK520 (wireless) Mouse Logitech MK520 PSU Seasonic M12II 520W Case Lian Li Lancool PC-K60 Cooling Case: 1x120mm, 3x140mm CPU: Hyper 212+ Hard Drives Crucial M4 128GB (000F), Seagates 1TB Barracuda ST31000528AS + Internet Speed 6-7 Mbps Antivirus Norton NIS, Malwarebytes on 2 (MSE on 3rd PC) Browser FireFox Other Info Audio: Logitech Z523 2.1 |
14 Oct 2011
|
#6 | | Windows 7 Home Premium x64, Mac OS X 10.6.2 x64 Boston, MA |
explorer.exe and wininit.exe, separately. | My System Specs | | System Manufacturer/Model Number Toshiba Satellite L505D-S9565 OS Windows 7 Home Premium x64, Mac OS X 10.6.2 x64 CPU AMD Athlon X2 Dual-Core 2.1 GHz Motherboard Toshiba Built-In with Insyde H20 BIOS 1.40 Memory 4 GB DDR2 800 MHz Graphics Card ATI Radeon HD Mobility 3100 Graphics 256MB to 1468 MB Shared Sound Card Realtek Mobile ALC272 HD Audio Monitor(s) Displays 15.6" TFT LCD with TruBrite, Samsung 1080p HDTV Screen Resolution 1366x768, 1920x1080 Keyboard Built-in Mouse Build-in Symantics SmartTouch Pad PSU N/A Case N/A Cooling Built-in/Open window in winter :P Hard Drives ❶:Main: Toshiba 250 GB SATA 5400 RPM Internet Speed 55 MB/sec Down, 9 MB/sec Up Other Info ❷:Backup: Seagate FreeAgent Desk USB 2.0 5400 RPM
❸:Media: Toshiba 640 GB USB 2.0 5400 RPM Portable Edition |
14 Oct 2011
|
#7 | | |
You are trying to kill wininit?! Are you trying to BSOD the computer? | My System Specs | | System Manufacturer/Model Number Alienware Aurora ALX R4 OS Windows 7 x64 (SP1) CPU Intel Core i7-3930K (3.2GHz, Turbo 4GHz) Motherboard Alienware Aurora-R4 x79 Memory 4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz) Graphics Card Nvidia Geforce GTX 690 (Stock) Sound Card RealTek Integrated Audio Monitor(s) Displays Dell UltraSharp U3011 Screen Resolution 2560x1600 Other Info Dell Inspiron Mini 10v (Intel Atom N270 1.6 GHz; 1GB; Windows 7 Ultimate) |
14 Oct 2011
|
#8 | | Windows 7 Home Premium x64, Mac OS X 10.6.2 x64 Boston, MA |
Well... not my computer :P | My System Specs | | System Manufacturer/Model Number Toshiba Satellite L505D-S9565 OS Windows 7 Home Premium x64, Mac OS X 10.6.2 x64 CPU AMD Athlon X2 Dual-Core 2.1 GHz Motherboard Toshiba Built-In with Insyde H20 BIOS 1.40 Memory 4 GB DDR2 800 MHz Graphics Card ATI Radeon HD Mobility 3100 Graphics 256MB to 1468 MB Shared Sound Card Realtek Mobile ALC272 HD Audio Monitor(s) Displays 15.6" TFT LCD with TruBrite, Samsung 1080p HDTV Screen Resolution 1366x768, 1920x1080 Keyboard Built-in Mouse Build-in Symantics SmartTouch Pad PSU N/A Case N/A Cooling Built-in/Open window in winter :P Hard Drives ❶:Main: Toshiba 250 GB SATA 5400 RPM Internet Speed 55 MB/sec Down, 9 MB/sec Up Other Info ❷:Backup: Seagate FreeAgent Desk USB 2.0 5400 RPM
❸:Media: Toshiba 640 GB USB 2.0 5400 RPM Portable Edition |
25 Oct 2011
|
#9 | | Windows 7 Professional SP1 32-bit Fantasyland |
OK, so why do you want to kill wininit.exe? It's a critical system process. If you're issuing a command to shut down this process I'm not surprised that you end up with a standby/shutdown/restart dialog... | My System Specs | | System Manufacturer/Model Number Custom-built OS Windows 7 Professional SP1 32-bit CPU Intel Core 2 Duo E6600 2.4GHz, overclocked to 2.7GHz Motherboard Asus PL5D2 Memory 4GB DDR2-667 (4x1GB in dual-channel config) Graphics Card nVidia GeForce 9800 GT Sound Card Creative X-Fi XtremeMusic Monitor(s) Displays Acer Screen Resolution 1920x1200 (DVI) Keyboard Standard Mouse Microsoft wireless optical mouse PSU Antec TruePower 2.0 Case Cooler Master Centurion Cooling various fans Hard Drives OCZ SSD Vertex Plus 60GB SATA (Firmware 3.55), 64MB cache
Hitachi HD321KJ SATA, 320GB, 7200rpm, 16MB cache Internet Speed DSL; ~330KB/sec down, ~110KB/sec up Other Info Have a laptop too :) (Compaq CQ60 also with Win7 Pro SP1 32-bit)
Drives in both systems:
C: - Windows 7 + apps. Pagefile is fixed size and located at the very end of the partition.
D: - various temp files/cache for Firefox and apps/games.
E: - videos, music, misc. storage, torrent downloads, etc. |
26 Oct 2011
|
#10 | | Windows 7 Home Premium x64, Mac OS X 10.6.2 x64 Boston, MA |
Yes, but it did the same thing for explorer.exe and even chrome.exe | My System Specs | | System Manufacturer/Model Number Toshiba Satellite L505D-S9565 OS Windows 7 Home Premium x64, Mac OS X 10.6.2 x64 CPU AMD Athlon X2 Dual-Core 2.1 GHz Motherboard Toshiba Built-In with Insyde H20 BIOS 1.40 Memory 4 GB DDR2 800 MHz Graphics Card ATI Radeon HD Mobility 3100 Graphics 256MB to 1468 MB Shared Sound Card Realtek Mobile ALC272 HD Audio Monitor(s) Displays 15.6" TFT LCD with TruBrite, Samsung 1080p HDTV Screen Resolution 1366x768, 1920x1080 Keyboard Built-in Mouse Build-in Symantics SmartTouch Pad PSU N/A Case N/A Cooling Built-in/Open window in winter :P Hard Drives ❶:Main: Toshiba 250 GB SATA 5400 RPM Internet Speed 55 MB/sec Down, 9 MB/sec Up Other Info ❷:Backup: Seagate FreeAgent Desk USB 2.0 5400 RPM
❸:Media: Toshiba 640 GB USB 2.0 5400 RPM Portable Edition Kill process with cmd problems? All times are GMT -5. The time now is 08:43 AM. | |