Originally Posted By: sgraham978
Just letting you all know that I've finally written a script that does what I want it to do with regards to proxies...in case anyone would like to know I've pasted the code below..

Code
-------------------------------------------
DIM $SUBNET
$SUBNET = SUBSTR(@IPADDRESS0,1,8)
If $SUBNET = "Your IP Address"
$key = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
WRITEVALUE($key,"ProxyEnable","1","REG_DWORD")
WRITEVALUE($key,"ProxyServer","proxy:8080","REG_SZ")
WRITEVALUE($key,"ProxyOverride", "<local>", "REG_SZ")
Else
$key = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
WRITEVALUE($key,"ProxyEnable","0","REG_DWORD")
EndIf
------------------------------------------------

Thanks to everyone who responded...much appreciated.


Hello @ all

I'm new at this forum and need your help because I don't come along with this code.
I was searching exactly for an IE proxy solution like this because we need different 'proxy override' options for our inner office user and our field force user.

My problem, it seams the ip address can not be checked because only the 'Else' function works.
The script should check if the ip address is a 10.43.1.* address and then should write the 'proxy override' value in the registry.
All our other ip addresses like 10.43.2.*, 10.43.3.*, 10.43.4.* and so on should get the 'Else' values.

What's going wrong here?

Thanks in advance for your help.


Edited by PeckMan (2007-05-18 10:32 AM)