China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 15:48
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to kill a rogue Windows process from DOS View 1,289 Replies 3
Original Poster Posted 2006-05-08 20:03 ·  中国 福建 泉州 电信
高级用户
★★
论坛灌水专业户
Credits 613
Posts 266
Joined 2006-04-19 22:47
20-year member
UID 54113
From 河南省
Status Offline
There is some process in my system, no idea what it is, and it takes up a lot of resources. When I try to kill it with Windows Task Manager, it always says access denied. I want to know how to kill it from DOS. Please help me think of a way, thanks!




Oh right, my system is WINDOWSXP2, using the DOS that comes with the system
饮马恒河畔,剑指天山西,碎叶城揽月,库叶岛赏雪,黑海之滨垂钓,贝尔加湖面张弓;中南半岛访古,东京废墟祭祖!
Floor 2 Posted 2006-05-08 20:52 ·  中国 湖北 荆门 电信
荣誉版主
★★★
Credits 2,013
Posts 718
Joined 2006-02-18 07:07
20-year member
UID 50550
Status Offline
Don't make duplicate posts for the same question. The commands for ending a process are still just those few:

taskkill /fi "imagename eq 进程名.exe"
wmic process where name="进程名.exe" call terminate
ntsd -c q -pn 进程名.exe

If none of these 3 can end it, that means the process is a critical system process.
You can post what happens when you run them, for example the process name, which command you used, and what the error message is.
Floor 3 Posted 2006-05-09 12:19 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Log in as administrator, then run the following code. You can also save it as a bat file and double-click it to run.


::By est,electronicstar@126.com
@echo off
set t=%time%
echo %t%
time 00:00
at 00:01 /interactive taskmgr >> nul
time 00:01
::delay for few seconds
ping -n 5 127.1 >> nul
time %t%


This will start taskmgr with SYSTEM privileges, and it can kill the vast majority of processes. It is said that at minimum only two can be left

[ Last edited by electronixtar on 2006-5-9 at 12:28 ]
Floor 4 Posted 2006-05-09 19:49 ·  中国 福建 泉州 电信
高级用户
★★
论坛灌水专业户
Credits 613
Posts 266
Joined 2006-04-19 22:47
20-year member
UID 54113
From 河南省
Status Offline
Thanks, post #2, it killed the process very successfully. No idea what this lousy process is, and Kingsoft Antivirus can't detect anything either.


If I'm using a guest account, how should I kill it? Using the moderator's method always gives access denied.
饮马恒河畔,剑指天山西,碎叶城揽月,库叶岛赏雪,黑海之滨垂钓,贝尔加湖面张弓;中南半岛访古,东京废墟祭祖!
Forum Jump: