Link to home
Start Free TrialLog in
Avatar of afflik1923
afflik1923Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Windows Server 2003 - Login script - not updating network drive mapping after change

Hi,

In a windows server 2003 environment we needed to move a network drive to a new location. Therefore we transferred data to another location on the network and changed the login script so that the Drive letter T was mapped to a different location

e.g.
NET USE T: \\SERVER1\ShareLocation
Became:
NET USE T: \\SERVER2\ShartLocation

However all the uses on the network still retain the old location unless we manually go to their PC, disconnect the T drive network drive manually and then run the login scrip for the NETLOGON folder.

Why is it not updating automatically with the updated script. What more can I do to make it work for all users?
Thanks in advance
Avatar of tetran_au
tetran_au
Flag of Australia image

It will maintain the last know drive mapping unless you delete.  Easiest way is to do the following

NET USE T: \\SERVER1\ShareLocation /delete
NET USE T: \\SERVER2\SharetLocation

Run this till you are sure that all the drives have been remapped and then remove the first line from your script
Avatar of afflik1923

ASKER

I assume if it encounters the delete command and there is nothing to delete this will not cause a problem (Maybe just issue an error message)?
ASKER CERTIFIED SOLUTION
Avatar of tetran_au
tetran_au
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Timothy McCartney
I'll second tetran_au, our clients use a simple logon.bat file with the following command for each network drive

net use p: /delete
net use s: /delete
net use p: \\Server\%username%
net use s: \\Server\shared

This ensures that no conflicts occur when mapping their appropriate drives. The only errors I've seen are when it has issues locating the drive it is trying to map (due do various issues, network down, permissions issues, etc)
Correct Tracerfett,  If you use the net use command to map a drive on logon and the drive exists but for some reason you do not have access to it I.E. no permissions then the device will look as though its hung.  You will be presented with a blank screen which looks like ur profile is hung and has not loaded properly.

To over come this hit ctrl - alt - esc and bring up task manager and run explorer.   If your desktop comes up correct then you know that there is definatly a issue with the drive mapping.  REM out all your drives and slowely add one back at the time. Eventually you will find the culprit and then  you can discover why it is not working.
+1 for tetran_au's previous comment.
Great answer. Sorry for delay.