Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forcing users to Proxy Server

Status
Not open for further replies.

btalon

Programmer
Dec 16, 2002
144
US
I have a proxy server and I am wanting to force the client machines to have to go through it before they go through the firewall. I have a 2003 server and an NT server. The DHCP sits on the NT server. I know you can set the proxy server in Internet Explorer on each individual client. I want to set the proxy server on each client automatically (either through a script or some other means, can you force it using DHCP or something?). I found a script to modify the registry, but am unsure on how to get it to run during a log on script. I have it saved as a .reg file.

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"MigrateProxy"=dword:00000001
"ProxyEnable"=dword:00000001
"ProxyHttp1.1"=dword:00000000
"ProxyServer"=""ProxyOverride"="<local>"

Any help would be appreciated.
 
btalon,

You've almost got it with the script. As NickFerrar says, you can use group policy.

But you are almost there with your script- just the add the following:

****************************************

REGEDIT4

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"MigrateProxy"=dword:00000001
"ProxyEnable"=dword:00000001
"ProxyHttp1.1"=dword:00000000
"ProxyServer"=""ProxyOverride"="<local>"

*****************************************
Save this in a text editor as a .reg file, eg proxy.reg --
Then just reference it in a batch file by typing something like the following and saving it as a .bat file eg proxy.bat:

regedit /s \\servername\netlogon\proxy.reg

This presumes you put both the .reg and .bat file in the netlogon folder.


Sunil.
 
Yes, don't meant ot be a jerk but you've heard of group policy, right?
 
SM06,

If you are trying to imply that group policy is an easier way to do it then yes I know it is. NickFerrar already stated that as an option. I thought I'd finish off what btalon started off with.

The choice is btalon's as to which one he chooses to use.

Sunil
 
OK, I'll bite....Where in the many pages of GP can one define and control the Proxy Server Config? I see some of the related settings. In User Config\Admin Templates\Windows Components\Internet Explorer\Disable Changing Proxy Settings etc.

I was hoping to find a Policy that would allow me to define the IP and Port of the Proxy server and force those settings down to the clients.
 
Igore,

The settings you require are in:

User Config\Window Settings\Connection - click on 'Proxy Settings'. Here you can define both the IP and ports as you specify.

Sunil.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top