|
Right now I am just testing mapping a drive to the main shared folderl. I am using the same destination, but different letters based on group membership. Here is my login.bat followed by the logon.kix file
@Echo Off
CLS ECHO Verifying / Updating Script Software Installation, Please Wait...
IF "%OS%" == "Windows_NT" GOTO WinNT
c:\windows\command\XCOPY %0\..\KIX32.EXE %WINDIR%\SYSTEM\ /y > NUL c:\windows\command\XCOPY %0\..\KX16.DLL %WINDIR%\SYSTEM\ /y > NUL c:\windows\command\XCOPY %0\..\KX32.DLL %WINDIR%\SYSTEM\ /y > NUL c:\windows\command\XCOPY %0\..\KX95.DLL %WINDIR%\SYSTEM\ /y > NUL c:\windows\command\xcopy %0\..\kxrpc.exe %WINDIR%\SYSTEM\ /y > NUL c:\windows\command\XCOPY %0\..\logon.kix %WINDIR%\SYSTEM\ /Y > NUL ECHO Loading Logon Script, Please Wait... %WINDIR%\SYSTEM\KIX32.EXE %WINDIR%\SYSTEM\logon.kix GOTO End
:WinNT XCOPY %0\..\KIX32.EXE %WINDIR%\SYSTEM32\ /D /H /I /R /V > NUL c:\windows\command\XCOPY %0\..\logon.kix %WINDIR%\SYSTEM\ /D /H /I /R /V /Y > NUL ECHO Loading Logon Script, Please Wait... %WINDIR%\SYSTEM32\KIX32.EXE %WINDIR%\SYSTEM32\logon.KIX GOTO end
:End
Here is the .kix file...
"Mapping Drives..."
if ingroup ("Teachers") = 1 "Teacher" use g: '\\srv\eolsdata' endif
if ingroup ("Administrators") = 1 "Administrator" use j: '\\srv\eolsdata' endif
"End Mapping..."
On every login, the "Drive Mapping..." shows up in the login script, but sometimes, you don't get any other text (Teacher, Administrator, or End Mapping), and that is when you don't get the drive mapped. Obviously it never descends into the if statements, but I have no idea why. This is with the same user each time. I am baffled.
Jeremy
|