neilparkes
IS-IT--Management
Hi there.
I need to add into a logon script (win 2k sbs) to map a drive, only if one of the directors logs on. This is to give access to all users files. I could do this with 2 logon scripts..but I would like to try and get this working!
Unfortunatley the script is mapping this drive whatever user logs on!
What I have added is:
ECHO CONNECTING PRIVATE DRIVES
NET USE G: \\SBSERVER\USERS\%USERNAME% /YES >NUL
IF %USERNAME% == ADMINISTRATOR GOTO D
IF %USERNAME% == MARK GOTO D
IF %USERNAME% == KEVIN GOTO D
IF %USERNAME% == MIKE GOTO D
D
NET USE S: \\SBSERVER\ALL_USERS /YES >NUL
D
ECHO OK
All workstations are Win2k Pro. Any ideas why this isnt working? Any help greatly appreciated.
Regards,
I need to add into a logon script (win 2k sbs) to map a drive, only if one of the directors logs on. This is to give access to all users files. I could do this with 2 logon scripts..but I would like to try and get this working!
Unfortunatley the script is mapping this drive whatever user logs on!
What I have added is:
ECHO CONNECTING PRIVATE DRIVES
NET USE G: \\SBSERVER\USERS\%USERNAME% /YES >NUL
IF %USERNAME% == ADMINISTRATOR GOTO D
IF %USERNAME% == MARK GOTO D
IF %USERNAME% == KEVIN GOTO D
IF %USERNAME% == MIKE GOTO D
D
NET USE S: \\SBSERVER\ALL_USERS /YES >NUL
D
ECHO OK
All workstations are Win2k Pro. Any ideas why this isnt working? Any help greatly appreciated.
Regards,