why isn't drive being mapped ? loginscript question ?

Soldato
Joined
18 Oct 2002
Posts
10,075
Location
At home
Hi in our login script, some users aren't getting their home drive mapped. This is the bit of code :

Code:
IFMEMBER.EXE "LOCAL\glos_Users"
if %errorlevel%==0 GOTO GLOS_HDRIVES_EXIT
net use h: \\glos-dc-01\h-drive$\%username%
:GLOS_HDRIVES_EXIT

Any obvious reason why their drive isn't being mapped properly ??

Thanks
 
put some error checking in it:

Code:
IFMEMBER.EXE "LOCAL\glos_Users"
echo Error Level is: %errrolevel%
PAUSE
if %errorlevel%==0 GOTO GLOS_HDRIVES_EXIT
echo Error Level Was 0
echo Mapping drive to \\glos-dc-01\h-drive$\%username%
PAUSE
net use h: \\glos-dc-01\h-drive$\%username%
echo Drive mapped
PAUSE
:GLOS_HDRIVES_EXIT
echo GLOS_HDRIVES_EXIT WAS CALLED
PAUSE

See where it fails

( i am aware there are better ways to error check, but this is the easy way :p)
 
Create a new script put that in it, put one of the users who is having trouble on this script instead of the other, then log that user in, everyone else can continue to use old script in meantime.
 
I know nothing about login scripts, but looking at that it would appear that in order for the h: drive to get mapped, there must be a directory called %username% for each user.

Therefore it might be worth checking that all users have their own directories setup on that server, and that their username exactly matches the directory name.
 
HangTime said:
I know nothing about login scripts, but looking at that it would appear that in order for the h: drive to get mapped, there must be a directory called %username% for each user.

Therefore it might be worth checking that all users have their own directories setup on that server, and that their username exactly matches the directory name.

I agree on with you on this one mate.

If some of the users cant get the mapped drive but some can then i'd look at the directory structure.

Making use the Username is the same as the folder name. Could be case-sensitive, cant remember now.

For example the username could be Joe.Ninety, but the folder could be called joe.ninety.

Its worth a check anyways. :)
 
Back
Top Bottom