Change Proxy in Explorer

Posted on 2004-10-25
Last Modified: 2009-12-16

I have several proxy servers I use.  To change I currently go to Internet Explorer, Tools, internet options, connections, lan settings.  Is there an easier way to make this change?  

Question by:Lotus30306
    LVL 34

    Expert Comment

    Make a REG file for each Proxy server and then apply the appropriate REG file when needed.
    LVL 34

    Expert Comment

    Here is a sample REG file:


    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]


    Change the ProxyServer IP as required.
    LVL 2

    Accepted Solution

    Here is a vbscript I use myself for the same problem.  I have proxy settings set to per machine hence it modifys HKLM,  just substitute HKLM for HKCU if it dosen't work.  If you want a customised one, post the proxy settings you use and I will edit script accordingly.  Copy all text below and save into proxy.txt file.  Rename proxy.txt to proxy.vbs.

    strplace=Inputbox("Set your proxy settings W=Work,I=RM ISDN,S=SEGfL,N=None")
    ' Variables
    Dim WshShell

    ' Create Object
    Set WshShell = CreateObject("WScript.Shell")

    if ucase(strplace)="W" then
     WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer","wingate:80","REG_SZ"
     WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Proxyenable",1,"REG_DWORD"
     WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyOverride","eisintranet;kent196;kent304;kccintranet;10.*.*.*;eisps;<local>","REG_SZ"
    end if

    if ucase(strplace)="I" then
     WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer","","REG_SZ"
     WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Proxyenable",1,"REG_DWORD"
     WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyOverride","<local>","REG_SZ"
    end if

    if ucase(strplace)="S" then
     strproxy=Inputbox(prompt,"IP Address of SWS Server")
     WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer",strproxy & ":8002","REG_SZ"
     WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Proxyenable",1,"REG_DWORD"
     WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyOverride","<local>","REG_SZ"
    end if

    if ucase(strplace)="N" then
     WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer","","REG_SZ"
     WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Proxyenable",0,"REG_DWORD"
     WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyOverride","","REG_SZ"
    end if

    Author Comment

    Hi Gavin,

    Please email me your email address.  My email is nospammodchip@mindspring.comnospam (remove nospam).  Thanks....

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT Security CISA, CISSP & CISM Certification

    Master the advanced techniques required to protect network resources from external threats with the IT Cyber Security bundle. Built around industry best-practice guidelines, the IT Cyber Security bundle consists of three in-depth courses.

    Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
    If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
    This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    856 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now