PDA

View Full Version : Pushing Proxy server IP address change



AMJ2
03-14-2001, 09:29 PM
Hi,

I have about 500 workstations (95/98/NT/2000, and ME).
They are currently using a proxy IP address in their IE. I want them to use the new proxy ip address that I set up for them. I find it hard to go to each individual workstation and change the configuration in the IE to point to the new IP address.
How can I push this proxy server IP address change down via a registry command line through the login script.
Thank you very much for any help!

brokenair
03-19-2001, 01:38 PM
why not DHCP?

chris<pixelmonkey>

ronin8
08-03-2001, 03:16 PM
Run a vbs in the batch file.

ex.

WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet Settings\ProxyServer", "ProxyIP:PORT", "REG_SZ"

And you enable the proxy with

WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet Settings\ProxyEnable", "1", "REG_DWORD"

This works on win2k check the keys for you versions of windows.

kamleshp
08-10-2001, 04:03 PM
How DHCP can be used to supply proxy ip:port settings..?? (I am interested in this)

I think u should go for a .PAC (Proxy Auto Configuration) file, which will give you more flexibility, in terms of other proxy options like intranet addresses for which proxy shouldn't be used etc.

You can use a text editor to create automatic proxy configuration (JS or PAC) files that dynamically assign browser proxy settings based on the location of hosts. Automatic proxy configuration files are JScript files. When an automatic proxy configuration file is specified, the Internet Explorer browsing software uses the proxy auto-configuration script to determine if it should connect directly to a host or use a proxy server. You can use automatic proxy configuration files to automatically configure different proxy servers for different domains.

The following example shows a proxy auto-configuration function that checks to see whether the host name is a local host, and, if it is, whether the connection is direct. If the host name is not a local host, the connection is made through the proxy server. In the following example the server name is “proxy1.”


function FindProxyForURL(url, host)
{
if (isPlainHostName(host))
return "DIRECT";
else
return "PROXY proxy1:80";
}

The isPlainHostName() function checks to see if there are any dots in the host name. If there are, it returns false; otherwise, the function returns true.

One example :- http://www.lgca.org/Techsupport/District/autoconfigproxy.htm

http://proxy.wrlc.org:8000/pac/pac.html