Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

AD script kixtart usage II (client IE proxy settings)

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report