PDA

View Full Version : Internet Explorer Problem



soumalya
07-25-2007, 01:31 PM
Sir

I am using windows 2k in my clients machine and using squid proxy server to access internet. but there are so many users access using their own user id password so i have to set the proxy setting in each time form each users.
is there any way by which i configure IE once as administrator in each machine and when others will use they can access internet with the same setting.


Thanks in advanced

josefz
08-02-2007, 12:56 AM
There are four registry values that control proxy settings for MSIE. These four registry values are MigrateProxy, ProxyEnable, ProxyServer, ProxyOverride, and we can
find them in next registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet Settings
We can see these settings are on per-user basis. I am afraid there is no Internet connection setting on per-machine basis.

However, you can automatically configure the proxy server settings on a client computer by updating the client computer registry. To do this, create a registry file that contains the registry settings you want to update, and then distribute it to the client computer by using a batch file or logon script.

To configure the proxy server settings on a client computer, create the following .reg file to populate the registry with the proxy server information:
Regedit4

[HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet Settings]
"MigrateProxy"=dword:00000001
"ProxyEnable"=dword:00000001
"ProxyHttp1.1"=dword:00000000
"ProxyServer"="ProxyServername:80"
;"ProxyServer"="http://ProxyServername:80"
"ProxyOverride"="<local>"


Or, what is the same, you can use next VBScript code snippet:

Const HKEY_CURRENT_USER = &H80000001

strComputer = "."
Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")

strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings"

strValueName = "MigrateProxy"
dwValue = 1
objRegistry.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName, dwValue

strValueName = "ProxyEnable"
dwValue = 1
objRegistry.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName, dwValue

strValueName = "ProxyServer"
strValue = "ProxyServername:80"
'strValue = "http://ProxyServername:80"
objRegistry.SetStringValue HKEY_CURRENT_USER, strKeyPath, strValueName, strValue

strValueName = "ProxyOverride"
strValue = "<local>"
objRegistry.SetStringValue HKEY_CURRENT_USER, strKeyPath, strValueName, strValue
In both above files (.reg and .vbs), ProxyServername is the name of your proxy server. Having said that, it’s possible that your data for the values might be different. Before you write your script you might want to use Regedit to verify the values.