PDA

View Full Version : Help needed adjusting internet connection settings



black_widow
01-24-2002, 03:49 PM
I was wondering if anyone can help me setup a script to automatically adjust proxy settings on a Windows 2000 PC. I am new to scripting and have not had any experience other than some minor scripts dealing with FSO access and using WSHNetwork. I am in need of a script that can, on the fly, switch between using and not using a proxy server to access the internet. If anyone knows of an easy way to do this, it would surely be appreciated. Thanks in advance!!!

twedlake
01-25-2002, 02:10 PM
Here's a suggestion as I don't know the registry keys off the top of my head. Install something like registry watch. Run IE and then switch the settings, note what was changed in the registry. Create e simple script that will access that specific key(s) and manipulate the entries.

Hope this helps.
Todd

king_ging
01-28-2002, 03:23 PM
Hi,

we use this kix script, it changes the automatic configuration path but if you look at the reg key you will find the proxy address and other details as well so some small changes would do the trick

$ = ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet Settings", "ProxyEnable")
If $ = "1"
$ = WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet Settings", "ProxyEnable","0", "REG_DWORD")
EndIF
If InGroup("FunGm_Internet")
At ( 6,20) "Active"
$ = WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet Settings", "AutoConfigUrl","http://proxy-ccaz.inet.nl.mycompany.com:8080", "REG_SZ")
Else
At ( 6,20) "Not Authorised"
$ = WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet Settings", "AutoConfigUrl","Disabled - ROC IT", "REG_SZ")
EndIf

good luck

alex t