General discussion
August 6, 2001 at 02:15 AM
jkeav634

Login Script Trouble

by jkeav634 . Updated 24 years, 12 months ago

We are currently migrating our server from Netware to NT . We have a mix of NT 4.0 and Windows 2000 workstations. We need the login script to create three mappings(1-department Drive,2-application Drive,3-user folder). The login script is below. Theonly problem we have had is with the user directory mapping. The SUBST command mapping would not work on the 2000 machines, and the net use s: \\rockland_pdc\users\%username% only works on 2000 machines. Any Ideas? We tried using the IF %OS% command with no luck.
******************************************
@echo off
REM Drive Mappings*****
net use * /delete /y
echo Application mapping
NET USE M: \\Rockland_pdc\apps

echo Department mapping
NET USE G: \\Rockland_pdc\Department

if “%os%” == “windows_nt” goto nt4

echo Default User mapping WIN 2000*********
net use s: \\rockland_pdc\users\%username%

:nt4
echo Default User mapping Win NT***********
NET USE R: \\Rockland_pdc\USERS
SUBST U: R:\%username%
NET USE R: /DELETEEnd Script

This discussion is locked

All Comments