System wide proxy settings in Windows

If you have proxy settings set up in Internet Explorer already, then you can just run proxycfg -u and you’re done. It will add the registry keys for you. In the run dialog (Start -> Run) enter this command. It will flash the command prompt black screen and exit before you can see what it did, and that is fine because it requires no additional input. Or you can bring up a command prompt and run it so you can see the output if you’re curious.

proxycfg -u

If you don’t have them set up in Internet Explorer, you can specify which proxy server and port to use with proxycfg:

proxycfg -p rootninja.proxy.org:8002

This will create a new key in the registry named “Connections” under this key:

HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Internet Settings/

It will have a default string value (REG_SZ) and a binary value (REG_BINARY) named “WinHttpSettings” that contain your new system wide proxy settings.

Posted by admica   @   18 September 2009

Related Posts

Like this post? Share it!

Digg Twitter StumbleUpon Delicious Technorati Facebook RSS

3 Comments

Comments
Mar 16, 2011
1:30 am
#1 Leica :

Will this work with command like http programs such as wget and http-ping, etc or just for IE?

Mar 16, 2011
9:31 am
#2 admica :

Are you talking about this wget? http://gnuwin32.sourceforge.net/packages/wget.htm

I’m curious if it would work, however, that port of wget does support proxies through a wgetrc configuration file.

Dec 22, 2011
9:01 pm
#3 Dieend :

Is there any setting for the proxy that using username and password? In linux we can use user:password@proxy_server:port, but that didn’t work here. Is there any way to make it work?

Leave a Comment

Name

Email

Website

Previous Post
« Windows keyboard shortcuts
Next Post
Convert Excel spreadsheets to CSV in Linux without OpenOffice »
Powered by Wordpress   |   Lunated designed by ZenVerse