• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How to delete old mapped drive and map new ones in logon script?

Cooky

Golden Member
We just moved some data from old servers to the new ones, and now needs to map all the mapped drives on them.
Obviously we don't want to go over to every single user's PC and do it.

What's the syntax to delete the old mapped drive and map new ones in logon script using the same drive letter?

I remember seeing a thread about it on this forum before but can't find it using the search function.
 
Thanks for the reply.

This is what I have in my logon script:
net use k: \\OldServer\FolderName /delete /yes
net use k: \\NewServer\FolderName

The original k: was mapped manually from the PC. We're trying to get rid of it, and then remap to the new server.
When I logon, I still have k: mapped to the old server.

Any suggestions?
 
Try looking at the data in it and it's probably on the new server. For some reason if you just switch the drive letter to a different location, it retains the same name but the connection is still correct. So try opening up that drive letter and actually looking at the data to make sure it's the new server.
 
Originally posted by: Cooky
Thanks for the reply.

This is what I have in my logon script:
net use k: \\OldServer\FolderName /delete /yes
net use k: \\NewServer\FolderName

The original k: was mapped manually from the PC. We're trying to get rid of it, and then remap to the new server.
When I logon, I still have k: mapped to the old server.

Any suggestions?

Including the old server and share name in the first net use statement, you are telling Windows to map the K: drive to that location. Use this instead:

net use k: /delete /yes
net use k: \\NewServer\FolderName

 
Back
Top