VBscript to set IE proxy

Hi Guys,
I'm having issues setting up a script that enables the IE proxy with IP and port.
In the batch file I'm using the set command to make variables so my collegues don't have to change anything below a certain line.
Example: 
set proxyip=192.168.1.10 %=change proxy IP%=
set proxyport=8080 %=change proxy port%=
Then I've tried to change it using the command line (registery) but for some reason it doesn't like the fact that I'm using these variables since it keeps adding everything in the IP box in IE which makes it look like: 192.168.1.10;:8080
When entering it manually without using the variables it's working fine as intended.
My next option was to look into an vbscript that I can call up from the batch file, however I don't have any experience with VBscript and I'm unable to find the right answer on the internet.
Basically what I'm looking for is a adjustment  that allows me to provide the IP and port directly from the command line (for example: proxyscript.vbs /Address:"%proxyip%:%proxyport%"
Thanks for your time

if "%1" == "" set /p PROXY= Enter Proxy?
if "%1" NEQ "" set PROXY=%1
echo %PROXY%
netsh winhttp set proxy %PROXY% "<local>"
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d %PROXY% /f
reg add "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
reg add "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d %PROXY% /f
save this as a.bat file and call it with a parameter proxyserver:port
note this batch also sets winhttp proxy and the IE proxy for the default user.
MCP/MCSA/MCTS/MCITP
Thanks, that helped me out!

Similar Messages

  • How do i set the proxy user in FF 3.6.13, this entry was existing earlier its gone now. using IE with entries in user account pwds works while FF doesn't.

    How do i set the proxy user in FF 3.6.13.
    previous versions had an entry for proxy user.
    its gone now.
    using IE with entries in user account pwds works while FF doesn't.
    too bad have to change back to IE :-(

    You can find the connection settings in Tools > Options > Advanced : Network : Connection
    See "Firefox connection settings":
    *[[Firefox cannot load websites but other programs can]]

  • Error while setting up proxy

    Hi,
    I am getting the following error while trying to set up proxy for a user :
    An error occurred while adding user proxy. Current proxy cannot be set as it is conflicting with earlier proxies with userid 121
    Following is coming up in logs :
    <Aug 28, 2012 8:54:28 PM CDT> <Notice> <Stdout> <BEA-000000> <<Aug 28, 2012 8:54:28 PM CDT> <Error> <XELLERATE.SERVER> <BEA-000000> <ProxyisaMultipleProxy>>
    <Aug 28, 2012 8:54:28 PM CDT> <Notice> <Stdout> <BEA-000000> <<Aug 28, 2012 8:54:28 PM CDT> <Error> <XELLERATE.SERVER> <BEA-000000> <Class/Method: tcDataObj/save Error :Insertion of dataobject into database failed>>
    <Aug 28, 2012 8:54:28 PM CDT> <Notice> <Stdout> <BEA-000000> <<Aug 28, 2012 8:54:28 PM CDT> <Error> <XELLERATE.DATABASE> <BEA-000000> <Class/Method: tcDataBase/rollbackTransaction encounter some problems: Rollback Executed From
    We are on OIM 11.1.1.3 BP6.
    Please provide some help as to what is reason for this kind of behaviour.
    Thanks

    Hi,
    We get this error due following reasons
    [Considering proxy is already specified for this user]
    1) Adding same user with same start & end date.
    2) Adding different user with same start & end date.
    Try to add different user with different start & end date.
    Thanks,
    Rahul

  • How to set up proxy on N79 ?

    How to set up proxy on N79 ?
    I've no idea for set up proxy on N79.
    I can't see something to set up that!
    So could you tell me how to setup proxy on N79

    See if this has the solution-
    http://nds1.nokia.com/phones/files/guides/Nokia_N79-1_UG_en.pdf
    Good Luck
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • How to set a proxy in solaris 11

    Hi
    After long research, I found the below syntax for setting up proxy in Solaris 11. And this works as well.
    But what will be the syntax if my passwd contain @ symbol, generally most of the passwords contains @ symbol, but this is not working if the password has @ symbol, it's considering as the other domain. I reset my password plain (without any symbol) and working fine.
    export http_proxy="http://username:password@proxy_url"
    username:- username
    Password:- Passwd@123
    proxy usr:- proxy.company.com
    How can I sent a proxy for above values?

    i used this to download using pkgutil by passing proxy
    export http_proxy=http://proxyusername:'password'@test.com:portnumber
    ex::
    from bash/ksh shell i used to tun this when i need to run any wget or curl from solaris machine
    export http_proxy=http://muvvas :'abc&@xyz'@test.com:8080
    export https_proxy=http://muvvas :'abc&@xyz'@test.com:8080
    export ftp_proxy=http://muvvas :'abc&@xyz'@test.com:8080

  • How to set a Proxy Server for appletv

    The network I'm on requires that I set a Proxy server to get out to the internet.
    Is there anyway to specify a Proxy server for AppleTV?

    Hi Red-Baron,
    The Apple TV does not support Proxy Server configuration (http://docs.info.apple.com/article.html?artnum=305010). An alternative is to enable internet sharing on a computer and have the Apple TV connect to that computer.
    Regards,
    John

  • Setting the proxy in a configuration file

    Hello All, Is there a configuration file where you can set http.proxyHost and http.proxyPort for a jsp web app (maybe web.xml)? I'm using tomcat 4.1. The web app in question is behind a firewall and needs to go through a proxy server to pull information from the internet. I'm looking for a way that doesn't involve setting the proxy parameters within the code of the web app. I've also read that you can set environment variables with "CATALINA_OPTS = -DproxySet=true -DproxyHost='proxy host' -DproxyPort=8080", will this work for my situation and in what file would I add this line?

    I may be wrong but I think that the "Use System Proxy Settings" makes sense only on Linux and generally speaking "other OSes". As far as I know there is no generic proxy settings in Windows operating system.
    The one I know is in the registry part of Internet Explorer.
    So in my understanding in Windows, Use System Proxy Settings = No Proxy

  • Setting the proxy in the JRE

    Hello all,
    I was just wondering how I can set the proxy I use in the JRE. If possible how I can set the auto configuration script but failing that setting the proxy server and port number would be fine.
    Thanks

    You can set the properties http.proxyHost and http.proxyPort (see http://java.sun.com/j2se/1.4/docs/guide/net/properties.html). If you need to authenticate take a look at http://www.developer.com/java/other/article.php/1551421

  • How could I set the proxy settings for just some URLs and not for all?

    Hello,
    I am using HttpURLConnection to establish a HTTP connection . The connection pass through a proxy, and it requires security.
    I know that I can set the proxy settings in the system properties, and this works perfect.
    But I don't want to set the proxy settings in the system properties, because this proxy settings will be for ALL the URLs, and I just want for a few URLs.
    How could I set the proxy settings for just some URLs and not for all?
    Thanks

    java.net.URL.openConnection(java.net.Proxy proxy)
    @since 1.5

  • Setting IE Proxy from MDT2012 Not working

    Im trying to predefine IE proxy setting during Win7 deployment from WDS2012
    I tried following this guide:
    http://blogs.technet.com/b/deploymentguys/archive/2010/11/30/using-the-mdt-windows-update-tasks-in-image-engineering.aspx
    using command line: cscript CFG-ProxySetting.wsf /Proxy:<Proxyname.company.com or IP Address>:<Port> /Exceptions:local
    But it fails to execute giving an error code 0000001 if i remember right.
    i also tried cscript.exe "%SCRIPTROOT%\CFG-ProxySetting.wsf" /Proxy:proxy.address.local:8080 /Exceptions:local
    Anyone have any suggestions ?
    (PS.  I dont want to set proxy with Group Policy because users need to be able to change it if necessary)

    Hi,
    Have you tried using "netsh winhttp set proxy"? 
    if "%1" == "" set /p PROXY= Enter Proxy?
    if "%1" NEQ "" set PROXY=%1
    echo %PROXY%
    netsh winhttp set proxy %PROXY% "<local>"
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d %PROXY% /f
    reg add "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
    reg add "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d %PROXY% /f
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How to set up proxy on Symbian S60 3rd edition?

    Everybody knows how to set up the proxy settings for Nokia web browser. But does anybody know how to set up proxy for use in any applications? For example, I would like to use Google maps app. through proxy server.
    Thanks in advance.

    I don't have a proxy set-up to try this, so you'll have to give it a go yourself. If memory serves correctly the network connections (WiFi/Cellular) are shared and reused, if already open, by any application requesting them on the phone.
    Is it possible to initiate the connection in the web browser, logging in and negotiating whatever gateway as necessary there, then with the browser still open going to the application you want to use?
    I know that when I used a free point in a hotel I was at last year you had to log in to their system via a webpage with a password. I was able to do this and then use other applications on my phone like SicFTP, eBuddy!, Windows Live etc. without any issues where they all failed to work previously, when I had not logged in via the browser.
    I hope this helps, I'm about to need to do this very same thing when I go travelling in a few weeks too!

  • How to set up Proxy settings manually in Tools Options Advanced Network connection

    i want to setup a Proxy on my desktop for secure browsing.. please tell me which IP address and which ports i can use to set the proxy setting manually.

    See Tor: https://www.torproject.org/index.html.en

  • Setting http proxy while using utl_dbws?

    How do I set the proxy while using the utl_dbws package to access Web services inside PL/SQL?
    Here is an article about using utl_dbws to invoke Web services.
    http://www.oracle-base.com/articles/10g/utl_dbws10g.php
    If the database is behind a firewall, how to set the http proxy?
    Thanks!

    Are u sure that utl_dbws.set_http_proxy(...) works?
    I got error like " PLS-00302: component 'SET_HTTP_PROXY' must be declared. "
    When I browse through the UTL_DBWS package in the database, I could not find the function set_http_proxy() either.
    Thanks!

  • Setting reverse proxy

    Hello Team,
    We have running squirrel webmail on top of the qmail application...we are inphase of integerating the exchange 2010 on it...The users will be in both qmail and exchange....The question how should i set reverse proxy in cisco asa firewall to re-direct by
    the webmail access from squirrel webmail to owa 2010 based upon the user location of mailbox on the application...
    Most of the users are in qmail as of now and planned to migrate only ten user for testing it out...Got stucked on the webmail proxy and redirection between cross platform...
    Exchange Queries

    I would ask this question to CISCO as you will have to make the changes on the device.
    You might want to open a thready in CISCO forum
    https://supportforums.cisco.com/index.jspa
    Gulab Prasad,
    MCITP: Exchange Server 2010 | MCITP: Exchange Server 2007
    MCITP: Lync Server 2010 | MCITP: Windows Server 2008
    My Blog |
    Z-Hire Employee Provisioning App
    Skype: Exchange.Ranger

  • Where can i set the proxy settings

    Using beta 4 of Firefox mobile with Android 2.2. I need to set proxy server, but can not find it.

    To set a proxy server in Firefox 4 beta for Android:
    #Type "about:config" in the address bar and press return.
    #Type "proxy.http" into the search box on the about:config page.
    #Tap on "network.proxy.http" and type the server name into the text box.
    #Tap on "network.proxy.http_port" and type the port number into the number box.

Maybe you are looking for

  • How to connect my 32PB200 LED TV to laptop ?

    If with VGA cable, then what about audio ?

  • Error message while activating BBPSTART

    Hi, When I am trying to activate the BBPSTART service, I am getting following error " http://XXXXXXXXX.com:8002/sap/bc/gui/sap/its/bbpstart?sap-client=100 Application not found" Can anybody please help, what setting I might be missed? Regards Malli

  • How to embed fonts in document for all users

    Hello, we are using a custom font for our documents. I know it's possible to embed fonts in document when saving. Is there an option to enforce this setting with a policy? I cannot find the right policy in the Office Policy templates. We are using Of

  • Fonts for HDTV Broadcast Design in Australia (PAL)

    Hello again everyone, I am researching deeper into the topic of Broadcast Design, specifically for HD & SD Digital TV in Australia. I want to use Photoshop to produce a graphic for HDTV(1920 * 1080)and then import it into Final Cut Pro HD to composit

  • Support for ADF Faces

    Hi Everyone, We are planing to use ADF Facses for our upcoming prjoject. so for that we want some sample application or demonstration because the list of component is available in the oracle site is not very rich may be not updated, how can i get det