Solved

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

Posted on 2012-03-25
8
753 Views
Last Modified: 2012-04-22
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
0
Comment
Question by:afflik1923
  • 3
  • 2
  • 2
8 Comments
 
LVL 2

Expert Comment

by:tetran_au
Comment Utility
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
0
 

Author Comment

by:afflik1923
Comment Utility
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)?
0
 
LVL 2

Accepted Solution

by:
tetran_au earned 500 total points
Comment Utility
sorry my code above was wrong.

it is just
NET USE T: /delete

Thats what happens when you copy and paste.  And if the drive does not exist it will just throw up a error saying the network connection could not be found and continue on its merry way.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 9

Expert Comment

by:Timothy McCartney
Comment Utility
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)
0
 
LVL 2

Expert Comment

by:tetran_au
Comment Utility
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.
0
 
LVL 9

Expert Comment

by:Timothy McCartney
Comment Utility
+1 for tetran_au's previous comment.
0
 

Author Closing Comment

by:afflik1923
Comment Utility
Great answer. Sorry for delay.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now