|
Logon.bat ************************************************* ECHO ON set path=c:\winnt\system32;\\bstl_svr1\netlogon; IF "%OS%" == "Windows_NT" goto NT_OS CALL \\bstl_svr1\netlogon\kix32.exe Logon9x.bat EXIT
:NT_OS call \\bstl_svr1\netlogon\kix32.exe \\bstl_svr1\netlogon\LogonNT.kix EXIT *************************************************
Logon9x.bat ------------------------------------------------- ? "Setting Win9x variables...please, wait." SHELL "winset.exe USERNAME=@USERID" ? "Done." ? "Map Network drive (User)..." SHELL "net use * \\bstl_svr3\@USERID$ /no"
IF Ingroup ("MK11") = 1 shell "net use * \\bstl_svr3\DocMK11$ /no" shell "net use * \\bstl_svr3\ShareDoc /no" shell "\\bstl_svr1\ofcscan\autopcc.exe" ENDIF ------------------------------------------------
LogonNT.kix ------------------------------------------------ use "*" /delete
use h: "\\bstl_svr3\%username%$"
IF Ingroup ("MK11") = 1 use i: "\\bstl_svr3\DocMK11$" run "\\bstl_svr1\ofcscan\autopcc.exe" ENDIF -----------------------------------------------
It has problem with LogonNT.kix only (Windows NT,2000,xp) When user start to login. (LogonNT.kix)command map drive (use) does not do anything, but run command done only.If user with a few minutes and run Script (Longon.bat-> LogonNT.kix) by manual it work.
Why not?
Pech
|