1. 打开“服务”面板,找到 WinHttpAutoProxySvc
服务,有的人会显示 WinHTTP Web Proxy Auto-Discovery Service
我们首先看看能不能找到这个服务,先看看该服务是否处于禁用状态(正常都是启用没问题的,可能是用过些什么优化软件把该服务禁用了),如果是禁用就尝试将它修改为启动状态,随后重启电脑即可;如果是没有该服务,也没关系,我们可以手动创建一下!
2. 在命令提示符里面创建语句,需要管理员权限才可以执行成功!
sc create WinHttpAutoProxySvc binPath= "C:\WINDOWS\system32\svchost.exe -k LocalServiceNetworkRestricted -p"
sc config WinHttpAutoProxySvc start= AUTO
net start WinHttpAutoProxySvc
3. 新建一个文件,将以下内容输入进去并将文件保存为.reg格式,然后执行,完事重启即可
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\EventLog\System\WinHttpAutoProxySvc]
"EventMessageFile"="$(runtime.system32)\\winhttp.dll"
"ProviderGuid"="{7D44233D-3055-4B9C-BA64-0D47CA40A232}"
"TypesSupported"=dword:00000007
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WinHttpAutoProxySvc]
"DependOnService"=hex(7):44,00,68,00,63,00,70,00,00,00,00,00
"Description"="@%SystemRoot%\\system32\\winhttp.dll,-101"
"DisplayName"="@%SystemRoot%\\system32\\winhttp.dll,-100"
"ErrorControl"=dword:00000001
"FailureActions"=hex:00,5c,26,05,00,00,00,00,00,00,00,00,03,00,00,00,14,00,00,\
00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,\
6b,00,20,00,4c,00,6f,00,63,00,61,00,6c,00,53,00,65,00,72,00,76,00,69,00,63,\
00,65,00,4e,00,65,00,74,00,77,00,6f,00,72,00,6b,00,52,00,65,00,73,00,74,00,\
72,00,69,00,63,00,74,00,65,00,64,00,20,00,2d,00,70,00,00,00
"ObjectName"="NT AUTHORITY\\LocalService"
"RequiredPrivileges"=hex(7):53,00,65,00,43,00,68,00,61,00,6e,00,67,00,65,00,4e,\
00,6f,00,74,00,69,00,66,00,79,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,\
67,00,65,00,00,00,53,00,65,00,43,00,72,00,65,00,61,00,74,00,65,00,47,00,6c,\
00,6f,00,62,00,61,00,6c,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,\
65,00,00,00,53,00,65,00,49,00,6d,00,70,00,65,00,72,00,73,00,6f,00,6e,00,61,\
00,74,00,65,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,\
00,00
"ServiceSidType"=dword:00000001
"Start"=dword:00000003
"Type"=dword:00000020
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WinHttpAutoProxySvc\Parameters]
"ProxyDllFile"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
6a,00,73,00,70,00,72,00,6f,00,78,00,79,00,2e,00,64,00,6c,00,6c,00,00,00
"ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
77,00,69,00,6e,00,68,00,74,00,74,00,70,00,2e,00,64,00,6c,00,6c,00,00,00
"ServiceDllUnloadOnStop"=dword:00000001
"ServiceMain"="WinHttpAutoProxySvcMain"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\WinHttpAutoProxySvc\Security]
"Security"=hex:01,00,14,80,00,01,00,00,0c,01,00,00,14,00,00,00,30,00,00,00,02,\
00,1c,00,01,00,00,00,02,80,14,00,9d,00,03,00,01,01,00,00,00,00,00,01,00,00,\
00,00,02,00,d0,00,09,00,00,00,00,00,14,00,9d,00,03,00,01,01,00,00,00,00,00,\
05,12,00,00,00,00,00,18,00,9d,00,03,00,01,02,00,00,00,00,00,05,20,00,00,00,\
20,02,00,00,00,00,14,00,9d,00,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,\
00,14,00,9d,00,02,00,01,01,00,00,00,00,00,05,04,00,00,00,00,00,14,00,9d,00,\
02,00,01,01,00,00,00,00,00,05,06,00,00,00,00,00,18,00,94,00,00,00,01,02,00,\
00,00,00,00,0f,02,00,00,00,01,00,00,00,00,00,18,00,94,00,00,00,01,02,00,00,\
00,00,00,0f,03,00,00,00,01,00,00,00,00,00,18,00,94,00,00,00,01,02,00,00,00,\
00,00,0f,03,00,00,00,02,00,00,00,00,00,18,00,94,00,00,00,01,02,00,00,00,00,\
00,0f,03,00,00,00,03,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00,01,01,00,\
00,00,00,00,05,12,00,00,00
4. 如果你发现你有这个服务,但是被禁用,而且无法开启怎么办???没关系,注册表来帮你!
首先确保您登录的账户是管理员账户,尝试在注册表中设置启用该服务,在修改注册表之前,请注意备份好您的注册表。
一、打开注册表编辑器(开始-运行-输入regeidt)
二、找到路径Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinHttpAutoProxySvc
三、在右边找到一个名为Start
的设置
四、将她的值设置为2
(2
为自动启动),随后重启计算机检查该服务是否为运行状态
然后你就会发现,设置代理已经完全没毛病!