South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
Instead of installing another application you could always use a script...
its set to auto for the office but for mweb i need to change it.If you use Chrome, Proxy Switchy works great, just not the DNS (although that should be set to automatic, right ?)
Const HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings"
strValueName = "ProxyEnable"
dwValue = 0
objRegistry.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName, dwValue
Const HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings"
strValueName = "ProxyEnable"
dwValue = 1
objRegistry.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName, dwValue
You can copy and paste the batch scripts below and save as a .bat file
Proxy Off:
Proxy On:
The above scripts will turn the proxy on or off, but don't change DNS settings.
You can go into your adaptor settings in Network and Sharing Center, Local area connection properties, Internet protocol version 4 (TCP/IPv4) and set the DNS settings on the alternate configuration tab. This will then use the alternate settings when not on the company network.
You will have to try to see which way works better, i.e. leave the General settings as auto and set the alternate settings as needed. If that doesn't work, then try with setting the required TCP/IP settings as the General settings, and leave the alternate as auto.thanks man! it seems i have to be on auto for the office. hence how do i set that as alternate?
You will have to try to see which way works better, i.e. leave the General settings as auto and set the alternate settings as needed. If that doesn't work, then try with setting the required TCP/IP settings as the General settings, and leave the alternate as auto.
thanks man! it seems i have to be on auto for the office. hence how do i set that as alternate?