建个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
网友评论