域用户登陆自动映射共享盘

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

域用户登陆自动映射共享盘

2009-02-12 13:25:45| 分类:服务器| 标签:|字号大中小订阅

首先建立域用户,然后建立按公司部门划分的组织单元(OU) 在OU中建立相应的组并将域用户按照部门加到组中。Local.kix判断用户属于哪个组并调用相对的Group.kix脚本并映射用户自己的文件夹,然后调用Dept.kix依用户所在的组映射相应的部门共享文件夹和公共文件夹

脚本说明:

script.bat 策略调用脚本

______________________________________________________________________________ __________________

@Echo off

ifWindows_NT == %OS% goto WINNT >nul

goto 95_98

:WINNT

gettype

if ERRORLEVEL=5 goto FIVE

if ERRORLEVEL=4 goto FOUR

if ERRORLEVEL=3 goto THREE

if ERRORLEVEL=2 goto TWO

if ERRORLEVEL=1 goto ONE

:FIVE

%0\..\kix32 tsscript.kix

net use a: /d

goto end

:FOUR

%0\..\kix32 tsscript.kix

net use a: /d

goto end

:THREE

%0\..\kix32 tsscript.kix

net use a: /d

:TWO

%0\..\kix32 tsscript.kix

net use a: /d

:ONE

%0\..\kix32 local.kix

goto end

:95_98

%0\..\KIX32 local.kix

goto end

:end

exit

Local.kix _____________________________________________________________________ ___________________________

ifingroup ("GROUP1")

call @lserver+ "\netlogon\local\GROUP1.kix"

else

ifingroup ("GROUP2")

call @lserver+ "\netlogon\local\GROUP2.kix"

else

endif

Group.kix

______________________________________________________________________________ __________________

cls

color r+/n

at (2,15) "Unauthorised access to this system is forbidden"

at (4,7) "Any attempt to access this system illegally may result"

at (6,28) "in criminal prosecution"

color w+/n

at (12,32) "Welcome " +@userid

at (14,18) "You are connecting to the BMW_Service Network."

at (16,10) "You are logging on as a XX GROUP User."

at (18,8) "If this is incorrect, please contact the IT Support."

at (20,18) "Who can then change your settings."

at (22,0) " "

use I: "\\FILESER\@userid$"

calldept.kix

Dept.kix

______________________________________________________________________________ __________________

ifingroup ("GROUP1")

use G: "\\FILESER\GROUP1"

use S: "\\FILESER\Public_Share"

else

ifingroup ("GROUP2")

use G: "\\FILESER\GROUP2"

use S: "\\FILESER\Public_Share"

else

call UTILS.KIX

endif

相关文档
最新文档