faqts : Computers : Operating Systems : Microsoft : bilal

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

17 of 17 people (100%) answered Yes
Recently 10 of 10 people (100%) answered Yes

Entry

Network: Proxy: Set: Microsoft: Windows: How to set the proxy server via the MSDOS command line?

Jan 22nd, 2006 11:02
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 22 January 2006 - 03:17 pm --------------------

Network: Proxy: Set: Microsoft: Windows: How to set the proxy server 
via the MSDOS command line?

---

Method: set the registry value for 'ProxyServer'

Steps: Overview:

 1. -Create a text file with the extension .reg

     1. -E.g. Open Notepad and create a file

          proxyset.reg

     2. -Put the following text in this text file

          REGEDIT4

          
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet 
Settings]
          "ProxyEnable"=dword:00000001
          "ProxyServer"="<your proxy server IP address>:<your proxy 
address port number>"

         ---

         For example

          REGEDIT4

          
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet 
Settings]
          "ProxyEnable"=dword:00000001
          "ProxyServer"="Proxy.Mycompany.com:8080"

 2. -Create a batch file

     1. -E.g.

          proxyset.bat

          1. -Put the following text in this batch file
              (you set the registry value for your proxy by running the
               regedit.exe program with parameter your .reg file.
               Here the parameter '/s' stands for 's'uppress
               additional information or 's'ilent mode).

                  regedit.exe /s <your .reg file>

                  ---

                  For example:

                   regedit.exe /s proxyset.reg


 3. -If you run this batch file from the command line
     it will run regedit.exe silently and set the
     registry value for your proxy

---
---

Internet: see also:

---

Network:Microsoft:Windows:How to create batch file to set IP 
address,mask,gateway,DNS,proxy?Overview
http://www.faqts.com/knowledge_base/view.phtml/aid/39154/fid/868

---

Operating system: Microsoft: Windows: XP: Link: Overview: Can you give 
an overview of links?
http://www.faqts.com/knowledge_base/view.phtml/aid/34878/fid/868

----------------------------------------------------------------------