- ·上一篇文章:进程保护,发现没有指定程序进程立即启动
- ·下一篇文章:批处理脚本通过Win Update破解安装Vista SP1
- ·百度中搜索更多的关于“只允许运行指定程序的批处理(加循环)”相关内容
- ·谷歌中搜索更多的关于“只允许运行指定程序的批处理(加循环)”相关内容
- ******申明******
- 本站文章内容有部分为收录网络中其他网友内容,DOS资源站不保证所有的代码都适合你使用。
- 由于编辑匆忙,有可能造成某些脚本文件出现丢失代码或代码无法运行的情况,请网友根据情况自行修改。
- 如果能将出错部分反馈给我,那就更好了。
只允许运行指定程序的批处理(加循环)
set /p ip=请输入IP地址最后位格式1-254:
set /p user=请输入用户名:
set /p password=请输入密码:
for /f "tokens=3 delims= " %%i in ('tasklist /s 192.168.1.%ip% /u %user% /p "%password%" /fo list^|find "图像名"') do (type %0|find /i "%%i"||taskkill /s 192.168.1.%ip% /u %user% /p "%password%" /fi "IMAGENAME eq %%i"&pause)
exit
csrss.exe
Dfssvc.exe
llssrv.exe
lsass.exe
msdtc.exe
Ravmon.exe
Ravmond.exe
RavStub.exe
RavTask.exe
services.exe
smss.exe
spoolsv.exe
sqlmangr.exe
sqlservr.exe
svchost.exe
System
System Idle Process
winlogon.exe
WinMgmt.exe
Explorer.exe
以上用于精简远程机器进程
:a
for /f "tokens=3 delims= " %%i in ('tasklist /fo list^|find "图像名"') do (type %0|find /i "%%i"||taskkill /fi "IMAGENAME eq %%i"&pause)
goto :a
exit
csrss.exe
Dfssvc.exe
llssrv.exe
lsass.exe
msdtc.exe
Ravmon.exe
Ravmond.exe
RavStub.exe
RavTask.exe
services.exe
smss.exe
spoolsv.exe
sqlmangr.exe
sqlservr.exe
svchost.exe
System
System Idle Process
winlogon.exe
WinMgmt.exe
Explorer.exe
此段用于循环监视只允许运行指定程序
可做成exe形式。隐藏运行此批。这样任务管理器也运行不起来哟。实为杀人灭口,居家旅行必备

