Unwanted Drive In Windows 10

User avatar
hlewton
PlatinumLounger
Posts: 3787
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Unwanted Drive In Windows 10

Post by hlewton »

How do I get rid of an unwanted drive letter in Windows 10? A Microsoft Tech put it there and it serves no purpose. He forgot to remove it and I cannot find it in Disk Management. Please see attachment. To me it seems like it is part of C: Drive. How can I remove it?

Thanks
UnWantedDrive.jpg
You do not have the required permissions to view the files attached to this post.
Regards,
hlewton

User avatar
John Gray
PlatinumLounger
Posts: 5401
Joined: 24 Jan 2010, 08:33
Location: A cathedral city in England

Re: Unwanted Drive In Windows 10

Post by John Gray »

In Windows Explorer, right click on it, choose Disconnect!
Or, in a Command Prompt window, do
NET USE Z: /D
Last edited by John Gray on 27 Nov 2020, 13:44, edited 1 time in total.
John Gray

Venison is quiet deer, and quite dear.

User avatar
Leif
Administrator
Posts: 7193
Joined: 15 Jan 2010, 22:52
Location: Middle of England

Re: Unwanted Drive In Windows 10

Post by Leif »

That looks like a mapped drive. Right-click 'This PC' and select 'Disconnect network drive'...
Leif

User avatar
hlewton
PlatinumLounger
Posts: 3787
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Unwanted Drive In Windows 10

Post by hlewton »

Thank you both. I did the Disconnect and it appears to be gone.
Regards,
hlewton

User avatar
hlewton
PlatinumLounger
Posts: 3787
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Unwanted Drive In Windows 10

Post by hlewton »

I am curious. If I wanted to use the folder or drive or whatever it is like "Z" in the attachment above, what would the command be to get it back? I looked at NET USE but couldn't figure it out. I am assuming I'd have to use the Command Prompt but not even sure about that.

Thanks
Regards,
hlewton

User avatar
HansV
Administrator
Posts: 78235
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Unwanted Drive In Windows 10

Post by HansV »

In File Explorer, select Easy Access > Map as Drive on the Home tab of the ribbon.
Select the drive letter that you want to use.
Click Browse... to select a folder, then click OK.
Finally, click Finish.
Best wishes,
Hans

User avatar
hlewton
PlatinumLounger
Posts: 3787
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Unwanted Drive In Windows 10

Post by hlewton »

Thank you.
Regards,
hlewton

User avatar
StuartR
Administrator
Posts: 12577
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Unwanted Drive In Windows 10

Post by StuartR »

If you want to do this from the command prompt then the command would be
NET USE Z: \\192.168.4.42\c
StuartR


User avatar
John Gray
PlatinumLounger
Posts: 5401
Joined: 24 Jan 2010, 08:33
Location: A cathedral city in England

Re: Unwanted Drive In Windows 10

Post by John Gray »

To Stuart's command you should add /P:Y if you wish the mapping to be 'permanent' (across logoff/logon).
John Gray

Venison is quiet deer, and quite dear.

User avatar
hlewton
PlatinumLounger
Posts: 3787
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Unwanted Drive In Windows 10

Post by hlewton »

Thanks to all of you.
Regards,
hlewton

User avatar
hlewton
PlatinumLounger
Posts: 3787
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Unwanted Drive In Windows 10

Post by hlewton »

A couple questions. Would I put the "/P:Y" one space to the left of this NET USE Z: \\192.168.4.42\c? Like
NET USE Z: \\192.168.4.42\c /P:Y ? Also is it possible use a similar command to map to the folder shown in the attachment? If so, what would that NET USE command be?

Thanks
MappedPath.jpg
You do not have the required permissions to view the files attached to this post.
Regards,
hlewton

User avatar
HansV
Administrator
Posts: 78235
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Unwanted Drive In Windows 10

Post by HansV »

Use:

NET USE Z: \\192\168.4.42\C /P:Y

or

NET USE Z: \\192.168.4.42\C\Users\Owner\Documents /P:Y
Best wishes,
Hans

User avatar
hlewton
PlatinumLounger
Posts: 3787
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Unwanted Drive In Windows 10

Post by hlewton »

HansV wrote:
30 Nov 2020, 19:39
Use:

NET USE Z: \\192\168.4.42\C /P:Y

or

NET USE Z: \\192.168.4.42\C\Users\Owner\Documents /P:Y
Thank you very much.
Regards,
hlewton

User avatar
hlewton
PlatinumLounger
Posts: 3787
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Unwanted Drive In Windows 10

Post by hlewton »

Your commands worked fine but I tried one more and it failed. Here is what I tried;
NET USE X: \\192.168.4.42\C\Access Databases /P:X
NET USE X: \\192.168.4.42\C\”Access Databases” /P:X


As you can see the folder I want to use is Access Databases. I tried the above command with and without quotes around Access Databases and I got error messages that didn't help me. It just said" You entered an invalid value for the **** option.

Can you once again please give me the correct syntax to use?
Regards,
hlewton

User avatar
HansV
Administrator
Posts: 78235
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Unwanted Drive In Windows 10

Post by HansV »

Place the quotes around the whole path (and use straight quotes, not curly quotes). Also, /P:X is not a valid switch, you can use /P:Y (for Yes) to make the drive assignment permanent, or /P:N (for No) to make it temporary.

NET USE X: "\\192.168.4.42\C\Access Databases" /P:Y
Best wishes,
Hans

User avatar
hlewton
PlatinumLounger
Posts: 3787
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Unwanted Drive In Windows 10

Post by hlewton »

HansV wrote:
01 Dec 2020, 14:57
Place the quotes around the whole path (and use straight quotes, not curly quotes). Also, /P:X is not a valid switch, you can use /P:Y (for Yes) to make the drive assignment permanent, or /P:N (for No) to make it temporary.

NET USE X: "\\192.168.4.42\C\Access Databases" /P:Y
Thank you and that worked.

Is there a way to type the straight quotes on a usu by use need instead of turning off Smart quotes in Word?
Regards,
hlewton

User avatar
HansV
Administrator
Posts: 78235
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Unwanted Drive In Windows 10

Post by HansV »

You can enter such commands directly into a Command Prompt window, or use Notepad. Both use straight quotes.
Best wishes,
Hans

User avatar
hlewton
PlatinumLounger
Posts: 3787
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Unwanted Drive In Windows 10

Post by hlewton »

HansV wrote:
01 Dec 2020, 16:21
You can enter such commands directly into a Command Prompt window, or use Notepad. Both use straight quotes.
Thank you. I thought I had remembered from a long time ago that using the arrows that are inside the Red box in the attachment below does make the curly quotes into straight quotes if you highlight them first. I tried it and it appears to work.
Quotes.jpg
You do not have the required permissions to view the files attached to this post.
Regards,
hlewton

User avatar
StuartR
Administrator
Posts: 12577
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Unwanted Drive In Windows 10

Post by StuartR »

If you type a quote mark then word will autocorrect it to a curly quote. If you immediately click the undo button (highlighted on the left in your graphic) then this will undo the conversion from straight to curly quote.
StuartR


User avatar
hlewton
PlatinumLounger
Posts: 3787
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Unwanted Drive In Windows 10

Post by hlewton »

StuartR wrote:
01 Dec 2020, 23:33
If you type a quote mark then word will autocorrect it to a curly quote. If you immediately click the undo button (highlighted on the left in your graphic) then this will undo the conversion from straight to curly quote.
Thank you.
Regards,
hlewton