Can't get rid of a particular drive

I'm having an issue on a mapped drive.  The issue first occured when this user physically connected a USB drive and took presedence over this particular drive letter.  Now everytime we login after a logoff or restart, the user's network drive is not mapped because it seems to remember the USB mapped drive letter.  How do I fix ?  This is on a Windows XP SP3 machine.
uppercut71412Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pjamCommented:
Try USBDeview it will see all your past and present USB connections, and allow you to remove them.
0
Giovanni HewardCommented:
If the USB drive is still connected see my solution here to reassigned the drive letter.

If the USB drive is not connected, there shouldn't be an issue using the available drive letter, so long as your mapping is being done properly.
0
pjamCommented:
Sorry forgot to say where you can get USBDeview:
http://www.nirsoft.net
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Emmanuel AdebayoGlobal Windows Infrastructure Engineer - ConsultantCommented:
Are you using login script to map your drives? if yes, you might need to us the [/DELETE] | [/PERSISTENT:{YES | NO}]] option with your net use command.

Regards
0
Joe Winograd, Fellow&MVEDeveloperCommented:
I'm a huge fan of NirSoft's (free!) utilities, which I've been using for many years, and agree with pjam's recommendation. To give you a little more info, the link to the specific USBDeview utility is here:
http://www.nirsoft.net/utils/usb_devices_view.html

You have to scroll to the bottom of the page to find the download links...and note that there are separate ones for 32-bit and 64-bit.

It is a stand-alone/no-install executable...simply run the EXE file that is in the downloaded ZIP file. To see the drive letter, make sure that column is selected via the View>Choose Columns menu pick:
Column settingsTo change the drive letter so that it doesn't conflict with your network share mapping, right-click on the device and you'll see this context menu:
Change assigned drive letterClick [Change Assigned Drive Letter] and you'll get this:
Change Drive LetterPick whatever letter you want so that it doesn't conflict with the mapped network drive. Regards, Joe
0
uppercut71412Author Commented:
What if I can't use any 3rd party utilities?
0
Joe Winograd, Fellow&MVEDeveloperCommented:
Then you may want to try x66_x72_x65_x65's suggestion of using Disk Management, which is built into Windows (run diskmgmt.msc or access it via Control Panel>Administrative Tools>Computer Management>Disk Management). But the thing is, if the drive is not connected, then it won't show up in Disk Management, so there's no way to remove the letter. That is, x66_x72_x65_x65 is correct when saying if the USB drive is not connected, there shouldn't be an issue using whatever drive letter it had been previously assigned...the drive letter should be available when the drive is not connected. But since it apparently is not available (and I don't know why), that's the reason I agreed with pjam's suggestion of NirSoft's USBDeview, because it can change a previously assigned drive letter even if the device is not connected (so it gets a different drive letter the next time it's connected). Regards, Joe
0
Giovanni HewardCommented:
Also in my linked post is a reference to DosDev, which is a Microsoft utility.  This will list all the GLOBAL identifiers and you can delete drive letters, etc.
0
Joe Winograd, Fellow&MVEDeveloperCommented:
Clicking on the DosDev link in your other post downloads a file called <mpsreports_x86.exe>. Is this right?
0
Giovanni HewardCommented:
Yes, files will extract to %temp% folder.  DosDev.exe is part of the package.

Run mpsreports_x86.exe--- wait for files to extract
dir %temp%\dosdev.exe /s/a/b
0
Joe Winograd, Fellow&MVEDeveloperCommented:
Thanks for explaining. Are you saying that DosDev will allow you to delete the drive letter for a USB drive that previously had a drive letter assigned but is not currently connected to the computer?
0
Giovanni HewardCommented:
Yes, read more about it here.

I was able to reproduce the issue.  Here's the process I'd use when the USB drive is disconnected:

dosdev
C: = \Device\HarddiskVolume2 [Fixed]
D: = \Device\HarddiskVolume1 [Fixed]
E: = \Device\CdRom0 [CDRom]

We see only HarddiskVolume1 and HarddiskVolume2 are present.  

Search for incremental entries:
dosdev -a|find "HarddiskVolume3"
dosdev -a|find "HarddiskVolume4"

On my system, I have a hit on HarddiskVolume4.  This is a USB HDD I just unplugged.

Harddisk1Partition1 = \Device\HarddiskVolume4
HarddiskVolume4 = \Device\HarddiskVolume4
STORAGE#Volume#{50a31fac-1bf9-11e3-be75-e0db55e447c6}#0000000000100000#{53f5630d-b6bf-11d0-94f2-00a0c91efb8b} = \Device\HarddiskVolume4Volume{50a31fb7-1bf9-11e3-be75-e0db55e447c6} = \Device\HarddiskVolume4

dosdev -d HarddiskVolume4
Current definition: HarddiskVolume4 = \Device\HarddiskVolume4
HarddiskVolume4 deleted.

dosdev -d Harddisk1Partition1
Current definition: Harddisk1Partition1 = \Device\HarddiskVolume4
Harddisk1Partition1 deleted.

dosdev -d Volume{50a31fb7-1bf9-11e3-be75-e0db55e447c6}
Current definition: Volume{50a31fb7-1bf9-11e3-be75-e0db55e447c6} = \Device\Hardd
iskVolume4Volume{50a31fb7-1bf9-11e3-be75-e0db55e447c6} deleted.

dosdev -d STORAGE#Volume#{50a31fac-1bf9-11e3-be75-e0db55e447c6}
STORAGE#Volume#{50a31fac-1bf9-11e3-be75-e0db55e447c6} deleted.

Now when I run dosdev -a|find "HarddiskVolume4" no entries exist.

When I plug the USB drive back in it maps as \Device\HarddiskVolume5

Interestingly enough when I unplug it no entries exist for \Device\HarddiskVolume5
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Giovanni HewardCommented:
@uppercut71412

What is the output of running net use from the command prompt?

net use>"%userprofile%\desktop\netuse.txt"

Open in new window


What are your results when running the following?

dosdev -d x:
net use x: /delete
net use x: \\server.domain.local\share\path /user:domain\username password /savecred  /persistent:yes 

Open in new window


Where x: is the target drive share?
0
Joe Winograd, Fellow&MVEDeveloperCommented:
x66_x72_x65_x65,
Thanks again for the detailed explanation. I was not familiar with DOSDEV. Always good to learn about such tools. Regards, Joe
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.