建個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