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

One of the applications of AD script kixtart (automatic mapping of network disk)

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

Share

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

First of all, in the Active Directory user and computer tools, enter the following in the login script under the user's profile

Then we create a new NEO.bat file under domain share\\ nccn.int\ NETLOGON\ as follows

@ echo offcmd / c% logonserver%\ netlogon\ KIX32.EXE% logonserver%\ netlogon\ kixtart.kixexit

At the same time, copy the script executor kix32.exe of kixtart to\\ nccn.int\ NETLOGON\

In addition, under\\ nccn.int\ NETLOGON\, create another kixtart.kix file (you can edit it directly with notepad, but it is recommended to use a third-party editing tool, such as Notepad++)

Kixtart.kix content:

SETCONSOLE ("ALWAYSONTOP") $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) COLOR b/bBOX FULL) COLOR y+/bAT (1) "Good morning!" @ fullname "^ _ ^" AT (2) * * "AT (3)" Drive Mappings " Use J: / deleteUSE J: "\\ nccn.int\ PublicShare"; the following maps the drive letter IF INGROUP ("SIU (Write)") Use S: / deleteUSE S according to different AD user groups: "\\ 192.168.20.5\ design group" ENDIFIF INGROUP ("NCG-Shipping (Write)") Use S: / deleteUSE S: "\\ 192.168.38.4\ iTVS" ENDIFIF INGROUP ("ZSITSupport") USE V: "\ 192.168.38.33\ ITShare" ENDIFAT (3) USE ListSLEEP (6) EXIT

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