AD script kixtart usage II (client IE proxy settings)
Based on the http://windyma.blog.51cto.com/661702/1967027 user script of the previous article
Add the following to the script file kixtart.kix:
First get the client IP address $SUBNET = Ltrim (SubStr (@ IPADDRESS0, 1,8)) $TEMP = @ IPADDRESS0 $IP= "" FOR $Counter=1 TO 15 IF SUBSTR ($TEMP,$Counter,1) = "" $IP=$IP + "0" ELSE $IP=$IP + SUBSTR ($TEMP,$Counter,1) ENDIFNEXT$Network=SUBSTR ($IP,1,11) According to whether the IE proxy is enabled in different IP segments, the following is 70 IP 71 and 73 IP is not enabled. Other enable IE agent SELECTCase $Network = "192.168.070" WRITEVALUE ("HKEY_CURRENT_USER\ Software\ Microsoft\ Windows\ Currentversion\ Internet Settings", "ProxyEnable", "0", "Reg_DWORD") GOTO ENDIESETTINGCase $Network = "192.168.071" WRITEVALUE ("HKEY_CURRENT_USER\ Software\ Microsoft\ Windows\ Currentversion\ Internet Settings", "ProxyEnable", "0" Reg_DWORD) GOTO ENDIESETTINGCase $Network = "192.168.073" WRITEVALUE ("HKEY_CURRENT_USER\ Software\ Microsoft\ Windows\ Currentversion\ Internet Settings", "ProxyEnable", "0", "Reg_DWORD") GOTO ENDIESETTINGENDSELECTWriteValue ("HKEY_CURRENT_USER\ Software\ Microsoft\ Windows\ Currentversion\ Internet Settings", "ProxyEnable", "1", "Reg_DWORD"): ENDIESETTING Set the IE proxy server address, according to different user groups Use different proxy servers IF INGROUP ("Proxy-100") WriteValue ("HKEY_CURRENT_USER\ Software\ Microsoft\ Windows\ Currentversion\ Internet Settings", "ProxyServer", "192.168.38.100 ELSEWriteValue 8080", "Reg_SZ") ELSEWriteValue ("HKEY_CURRENT_USER\ Software\ Microsoft\ Windows\ Currentversion\ Internet Settings", "ProxyServer", "192.168.38.111pur8080", "Reg_SZ") ENDIF