Login script not overwriting the new share location and leaving the old intact

I'm currently using login script in Active Directory to map drives and just added a new server.  Even though the new login script is saved with the new server location.  The users logon and the old mapped drive to the old server is still there.  The way I've been getting rid of it is be selecting all the shares and disconnecting but I'm pretty sure there is a better way for them to update correctly.  How do you do this?
ZantisAsked:
Who is Participating?
 
NVITCommented:
If your login script maps something like:

... you may need a disconnect line right before. e.g.
net use z: /delete

... then map to the new share
net use z: \\newserver\share1
0
 
ZantisAuthor Commented:
Interesting, so you need to use net use to disconnect them in the login scipt beforehand, is this always a good general rule or just something I need to go because of the new server.  The old server had been running strong for 4 years without any issues without the disconnect script.  Just curious.
0
 
NVITCommented:
It's not necessary. It does use a second or 2 of time. Still, adding wouldn't hurt. Up to you.

I assume everyone is using the same drive letter to share? That's a factor. Sometimes, users use the same letter but different share.

You may want to confirm that.

Also, try my suggestion on a station before rolling it out. To be sure it works.
0
 
ZantisAuthor Commented:
Basically, the shares on the new server are the same drive letter as the old server.  I was under the impression that just by changing the login script and changing out the server name would do the trick but of course the old share locations are still mapped to the old server.  I'm just figured it would remap them.  I just want to do it the correct way that it should be done.
0
 
NVITCommented:
net use z: /delete
net use z: \\newserver\share1
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.