windows服务优化

2019-04-16  本文已影响0人  远or广

建个txt随便改成bat后坠把下面的复制进去右键管理员运行

@echo off

echo 关闭无用服务

net stop HomeGroupProvider

net stop HomeGroupListener

net stop wuauserv

net stop iphlpsvc

echo 禁止服务自启

sc config iphlpsvc start= disabled

sc config HomeGroupProvider start= disabled

sc config HomeGroupListener start= disabled

sc config wuauserv start= disabled

echo -----------------------------------------------------------------------------------

echo PolicyAgent 服务

net start PolicyAgent

echo 设置PolicyAgent自启

sc config PolicyAgent start=auto

echo 强制修改AllowL2TPWeakCrypto注册表值为1

reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RasMan\Parameters /v AllowL2TPWeakCrypto /t REG_DWORD /d "1" /f

echo 强制新建ProhibitIpSec 注册表值为1

reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RasMan\Parameters /v ProhibitIpSec /t REG_DWORD /d "1" /f

pause

上一篇 下一篇

猜你喜欢

热点阅读