[ 2008/04/09 17:23 | by 网络毛毛虫 ]
|
单一禁止服务:
sc config <service name> start= disabled
批量禁止服务:
找一个systeminternal的软件 psservice.exe
然后写一个下面的命令
for /f %%i in (srv_list.txt) do psservice.exe /accepteula stop %%i
for /f %%i in (srv_list.txt) do psservice.exe /accepteula setconfig %%i disabled
然后srv_list.txt里输入你的服务名
trkwks
browser
dnscache
ersvc
helpsvc
messenger
spooler
remoteregistry
lanmanserver
snmp
lmhosts
w32time
wzcsvc
等等