Proxy
刪除批處理文件中的代理設置
我想創建一個批處理文件以刪除 Internet Explorer 代理設置複選框。不要讓它變灰 - 而是從使用代理設置中刪除 IE。有人給我腳本嗎?
設置代理設置:
- .reg 文件:
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings] "ProxyServer"="xxx.xxx.xxx.xxx:xxxx" "ProxyOverride"="<local>" "ProxyEnable"=dword:00000001
- .vbs 文件:
set wshshell = createobject("Wscript.shell") WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 1, "REG_DWORD" WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer","192.168.001.250:80" WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyOverride","<local>" wshshell.popup "Proxy Example set.",3,"Messagebox"
- 但為什麼不使用組策略呢?