Computing.Net > Forums > Windows NT > removing mapped drives

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

removing mapped drives

Reply to Message Icon

Name: JarJar Windows
Date: September 5, 2000 at 10:25:41 Pacific
Comment:

I have logon scripts in place that map drives for each user. However, if they logon once and receive an R and S drive (for example) and I later change the script to map S to a different drive, instead of mapping the new drive it just says, "Error. S is already in use" (or something like that) and then leaves the old mapping in place.
So, the question is, how do I clear old mappings out?? (with a script that is, not by manually clicking "Disconnect Network Drive."

mesa thanks!
JJW



Sponsored Link
Ads by Google

Response Number 1
Name: twin
Date: September 5, 2000 at 16:04:10 Pacific
Reply:

Hi,

add the following at the beginning of your Script:

net use s: \\Server\share /delete

Now s: will be unmapped and ready to be mapped again


twin


0

Response Number 2
Name: David Miller MCSE
Date: September 6, 2000 at 06:33:50 Pacific
Reply:

Or you can use

net use s: /d

net use s: \\server\share


0

Response Number 3
Name: wolfie
Date: September 8, 2000 at 17:59:30 Pacific
Reply:

or use a wildcard for them all.


0

Response Number 4
Name: rlv
Date: April 27, 2001 at 09:17:22 Pacific
Reply:

If the auto mapping occurs everytime the user logs on, you can write the script so the mapping doesn't try to reconnect at logon, giving the drive letters a fresh start each time. At the end of the net use command, add /persistent:no. This would be the same as leaving the Reconnect at Logon box unchecked when you map a drive in NT.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Unable to find my cdrom d... E-mail problem



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: removing mapped drives

Strange Mapped Drives www.computing.net/answers/windows-nt/strange-mapped-drives/7903.html

copying map drivings from machines www.computing.net/answers/windows-nt/copying-map-drivings-from-machines/8355.html

NT erases(?) removable IDE drive on www.computing.net/answers/windows-nt/nt-erases-removable-ide-drive-on/20958.html