Update HTTP Proxy based on IP Address
Hey all, I often have to work at client sites and each client has different http proxies that must be used in order to get to the outside world. I'd like to set-up a scheduled task that upon obtaining a dhcp lease would configure the HTTP proxies accordingly. I think I know how to script the proxy configuration ( set-itemproperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -name ProxyEnable -value 1 But I don't know how to set-up the trigger or how to evaluate the domain so I can set the proxy appropriately. Any advice?
September 11th, 2010 4:24am

You can probably accomplish this by creating a "login script" because your computer will already have the IP address before you actually log on. Creating a login script is easy to do via Local Policy. Click Start, RUN, gpedit.msc User Configuration --> Windows Settings --> Scripts --> Logon create a VB script, Batch file, or any other executable to run whatever commands necessary to set the proxy settings. Visit: anITKB.com, an IT Knowledge Base.
Free Windows Admin Tool Kit Click here and download it now
September 12th, 2010 2:30am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics