How to Hide Drives in Windows with Command Prompt (CMD)

This tutorial will help you to keep your drive safe & secret from other people who also share your Desktop & Laptop. You can also get several free software's on the internet that can hide your computer drive.

In this tutorial we will explain this awesome trick with command prompt. There is no need to download any third party software.

How to Hide Drives in Windows with Command Prompt?

Step-1:

Click on START button > RUN > Type CMD and hit Enter.


If you are using Windows 7 or Windows 8, click on START and search RUN, type CMD and hit Enter. You can also press WIN+R on keyboard to open RUN.

Step-2:

Now type DISKPART command on command prompt and hit Enter. It will change default prompt to DISKPART as show in below snapshot.

Note: In Win 8, you will be asked to confirm whether you want to allow the program to make changes to the computer. Just click on YES and another window will open up shortly.

Hide Drives in Windows

Step-3:

Now type lіst vоlumе аnd hit Enter to see the list of all available drives. Here you can see F is DVD-ROM drive. Lets do the experiment with this drive.

Hide Drives in Windows

First you have to select the drive which you want to hide. Here I want to hide F drive, enter command select volume F and hit Enter to select the drive. You can see below snapshot for your reference.

Now type remove letter F and hit Enter to hide the drive. Here you can see you have successfully Hidden the drive.

Hide Drives in Windows

How to UnHide Drives in Windows?

To unhide the drives you have to perform below steps:

Step-1:

Now complete the above Step-1, Step-2 & Step-3 again.

Once you complete the above steps till select volume F, move to next step.

Step-2:

To unhide the drive, type Assign letter F and hit Enter.

Hide Drives in Windows

Step-3:

You can check the drive, you have successfully got the drive back.

Note: This tutorial is for educational purpose only, If you want to perform this trick, do it at your own risk. We will not be liable for any loss of data.


Subscribe to get free tech advice, tips and in-depth articles.


SiteGround Web Hosting Promo Discount Banner