Since we use Windows 2000 I have some troubles with the DHCP clients. I only want the DHCP clients to connect to internet by proxyserver, static ip clients don't use the proxy server. The script below works fine with Windows NT. I cannot figure out, how to get it right for Win2K machines. Can anyone help me out?

; *'Internet Explorer 5.5SP2 Settings for DHCP Clients'*
$DHCP=readvalue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DHCP","Start")
If $DHCP = $Dynamicip
WRITEVALUE ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings","ProxyEnable","00000001","REG_DWORD")
WRITEVALUE ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings","ProxyServer","PROXYSERVER:80","REG_SZ")
WRITEVALUE ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings","ProxyOverride","","REG_SZ")
endif