Into Windows

  • Home
  • Windows 11
  • Windows 10
  • Windows 7
  • Privacy
You are here: Home » Windows 10 » How To Hide Drives In Windows 10/8/7 Using Command Prompt

How To Hide Drives In Windows 10/8/7 Using Command Prompt

Last Updated on March 31, 2019 by admin 12 Comments

The Command Prompt in Windows is a very powerful tool to accomplish certain tasks that usually can’t be done unless you have a third-party tool. We have already covered a few guides such as how to install Windows via USB flash drive and how to add/delete/rename power plans using Command Prompt.

Hide drives in Windows 10 using command prompt

Today, we are going to share another interesting use of Command Line. One can use the Command Prompt to hide one or more drives in the explorer. Of course, you can use a free tool such as DriveHide to do the same. But, if you can remember a few commands, you can easily hide a drive in a few seconds without using a third-party software.

Hide drives using Command Prompt in Windows 10/8/7

Step 1: Type CMD in Start menu search area and hit Enter to launch Command Prompt. You can also find the Command Prompt under Accessories category in Start menu. In Windows 10 and 8.1, you can right-click on the Start button, and then click Command Prompt to open the same.

Hide Drives Using Command Prompt In Windows

Step 2: In the Command Prompt, type Diskpart and hit enter key. Click Yes if you are prompted with UAC (User Account Control) dialog-box.

 Diskpart Command

Step 3: And then type List Volume and hit enter to see list of all drives.

Hide Drives Via Command Prompt In Windows 7

Step 4: Select the drive that you want to hide. To do this, type Select Volume G (here, G is the drive letter) or Select Volume 8 (here 8 is the volume number)

Hide Drives Via Command Prompt In Windows 7 step5

Hide Drives Via Command Prompt In Windows 7 step2

Step 5: To hide a drive, type Remove Letter G. Here, G is the drive letter than you want to hide.

Hide Drives Via Command Prompt In Windows 7 step3

Step 6: You are done. Close the Command Prompt.

Show hidden drives using Command Prompt in Windows 10/8/7

Step 1: Follow the procedure mentioned in step 1, 2, and 3 of Method 1.

Step 2: Select the volume number for which you want to assign a drive letter and show in the explorer. Type Select Volume 8 (here, 8 is the volume number) and hit Enter key.

Step 3: Once selected, type Assign Letter G and hit Enter key to see the drive in explorer(replace G with the drive letter that you have previously removed).

Show Drives In Windows 7 Using Command Line

Filed Under: Windows 10 Tagged: Command Prompt

Related Posts

  • Launch Elevated Command Prompt From Command Prompt
  • How To Hide Drives In Windows 7
  • Hide Files And Folders Via Command Prompt In Windows 10
  • How To Make Command Prompt Transparent In Windows 10
  • Pin Admin Command Prompt To Taskbar In Windows 10
  • How To Change Command Prompt Text And Background Color In Windows 7

Comments

  1. ajith kumar says

    June 28, 2016 at 9:22 am

    It hides the drives only in the computer default display. But then the drive displays in the storage management menu. I need full hiding of the drive.

  2. Antonio Cabrara (MrU says

    November 1, 2013 at 10:22 am

    Hey ho, can the hidden drive still be Accessed manually? like typing (Drive letter):\Folder
    and will the contents show up in search?
    Cheers!

  3. admin says

    October 5, 2013 at 3:12 pm

    You need to add a drive letter. To do so, follow the instructions in the method 1 of this guide:
    intowindows.com/fix-missing-drives-in-windows-explorer/

  4. vinoth says

    October 5, 2013 at 11:35 am

    sir, i want how to unhidden the hidden drive in the computer.

  5. Himz says

    April 21, 2013 at 10:04 am

    Thanx… I’v done it following you…

  6. sim says

    November 2, 2011 at 4:50 pm

    well that was something helpful..keep it up

  7. Gon says

    March 10, 2011 at 4:06 am

    Its dangerous, the most secure way is from the Local Group Policy Editor. But anyway, nice info. Great site.

  8. mohit says

    February 7, 2011 at 10:02 pm

    Thanks a lot, its a nice tip !

  9. Khan says

    December 8, 2010 at 4:25 pm

    thank you too much dear brother

  10. Shawn says

    October 29, 2010 at 7:38 pm

    Will this (or a similar method) work with removable drives for all future times that the removable drive is plugged in? I have a USB drive with a TrueCrypt partition on it along with a regular unencrypted partition. The unmounted TrueCrypt partition shows up as an unformatted drive in Windows, which is really scary since Windows asks if you want to Format the partition any time you accidentally click on it. It also gives away that there’s something there, which is a slight security risk associated with the TrueCrypt partition. Any ideas on hiding this partition would be greatly appreciated.

  11. admin says

    October 19, 2010 at 6:11 pm

    I agree with you. This method is not novice Windows users.

  12. Cyberpunk says

    October 19, 2010 at 3:25 pm

    Hello,
    I just want to say that this is really unsafe ….

Leave a Reply

Your email address will not be published. Required fields are marked *

Advertisements

Search Into Windows

Recent posts

  • 5 Ways To Go To Desktop In Windows 11
  • How To Show Battery Percentage On Taskbar In Windows 11
  • Fix: AMD Software Adrenalin Edition Not Opening In Windows 11
  • How To Show Year On Windows 11 Taskbar
  • Windows 11 24H2 Is Available Now
  • How To Create 7z & TAR Files In Windows 11 Without Using Additional Apps
  • How To Remove Bell Icon From Taskbar In Windows 11
  • How To Reinstall Windows 11 Without Losing Apps And Files
  • How To Hide/Show Files & Icons On Desktop In Windows 10/11
  • How To Show Hidden Icons On Taskbar In Windows 11

About us

  • About Us
  • Contact Us
  • Privacy Policy

Copyright © 2025 · Into Windows