电脑用过VPN或是代理服务软件之后,有时候会有上网不正常的情况。
主要原因是这类软件非正常退出,造成成系统网络属性里面相关的设置没有清除。
其实只要在:Internet属性 - 连接 - 局域网(LAN)设置
这里的三个:自动检测设置,使用自动配置脚本,为LAN使用代理服务器
三个钩去掉,保存一下就可以了。
如果像我一样懒,也可以自己用记事本生成一份.bat 的文件,每次批处理一下就行了,反正就算已经没有打钩了,运行一下也是无毒无害的。
我之前也是网上找来做了一点改进,现在win 10 64位系统下运行完全正常,从没出过问题。
由于是批处理文件,有的防毒软件会提示,信任或是同意就可。(如果不相信那还是不要下载了,每次自己手动点吧)
我做好的 .bat 文件这里下载:
https://ningbocat.com/zb_users/upload/2020/02/自动检测前面的勾去掉.rar
代码:
@echo off
set regpath="HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings"
set reglist=ProxyEnable\reg_dword\0 ProxyServer\reg_sz\""
::去掉代理设置
for %%a in (%reglist%) do (
for /f "tokens=1-3 delims=\" %%b in ("%%a") do (
reg add %regpath% /v %%b /t %%c /d %%d /f
)
)
::去掉IE自动检测脚本
reg add %regpath% /v AutoConfigURL /t reg_sz /d "" /f
::去掉自动检测设置
set regpath="HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections"
set reglist=DefaultConnectionSettings-reg_binary-"4600000008000000010000000000000000000000000000000000000000000000100215aab3bece01000000000000000000000000050000001700000000000000fe8000000000000009b65ba6749eab530b0000001700000000000000fe8000000000000009b65ba6749eab530b0000001700000000000000fe8000000000000000005efec0a800660c0000001700000000000000fe8000000000000010d225363f57ff990d000000170000000000000000000000000000001700000000000000fe8000000000000000005efec0a800660c000000e841130060e9ed769c5b13009c5b13000000000000000000040000000000000000000000020000000000000000000000cc5b1300120000000c00000001000000000100000000000082000000fdfffffffdffffff000000000000000000000000000000001700000000000000fe8000000000000010d225363f57ff990d0000000000000000000000e5030000000000000000000036000036e643000080471300783f130000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000007c5c13008c5c130002000000c0a80066000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000f85a130008681100000000001a000000000000e00000002000000000cc5b13001200000017000000000000002001000041379e7610d225363f57ff9900000000bc040000f7b00400000000000000000000000000000000000000000000000000000000000000000000000000e400000088000000e00000000000000000000000000000000000000000000000000000000700000000000000000000000000000060581200" SavedLegacySettings-reg_binary-"4600000003000000010000000000000000000000000000000000000000000000100215aab3bece01000000000000000000000000050000001700000000000000fe8000000000000009b65ba6749eab530b0000001700000000000000fe8000000000000009b65ba6749eab530b0000001700000000000000fe8000000000000000005efec0a800660c0000001700000000000000fe8000000000000010d225363f57ff990000000170000000000000000000000000000001700000000000000fe8000000000000000005efec0a800660c000000e841130060e9ed769c5b13009c5b13000000000000000000040000000000000000000000020000000000000000000000cc5b1300120000000c00000001000000000100000000000082000000fdfffffffdffffff000000000000000000000000000000001700000000000000fe8000000000000010d225363f57ff990d0000000000000000000000e5030000000000000000000036000036e643000080471300783f130000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000007c5c13008c5c130002000000c0a8006600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000f85a130008681100000000001a000000000000e00000002000000000cc5b13001200000017000000000000002001000041379e7610d225363f57ff9900000000bc040000f7b00400000000000000000000000000000000000000000000000000000000000000000000000000e400000088000000e00000000000000000000000000000000000000000000000000000000700000000000000000000000000000060581200"
for %%a in (%reglist%) do (
for /f "delims=- tokens=1-3" %%b in ("%%a") do (
reg add %regpath% /v %%b /t %%c /d %%d /f >nul
)
)
还没有评论,快来抢沙发!