If you are a Windows user, you may know about hiding or locking a folder or file that contains confidential data.

But, if you have many such folders and files, then locking each folder is not good. A better option would be to transfer all files and folders that you want to hide from others, to some drives in your PC. Then, hide that entire drive so that it does not appear to anyone.

3 ways to Hide a Drive in Windows

There are different ways to hide a drive in Windows by using Disk Management, through Windows Registry, using Group Policy or by using Diskpart command in CMD.

We will see these approaches step-by-step so that you can apply the same to hide the drive in Windows.

Hide drive using Group Policy

  1. First, click on Start.
  2. Type run in search box and click on Run. A new window will open.
  3. Type gpedit.msc in Run box and hit enter.

  4. hide any drive in windows
    gpedit.msc

  5. Open user configuration as shown below image.

  6. hide any drive in windows
    User Configuration

  7. Then open administrative templates

  8. hide any drive in windows
    Administrative Templates

  9. Now open All settings

  10. hide any drive in windows
    All Settings

  11. Now find, Hide these specific drives in my computer, and Double click on it.

  12. hide any drive in windows
    Hide these specific drives in my computer

  13. Now click enabled, select any drive that you want to hide and click apply and ok.

  14. Enable hide these specific drives in my computer and select drive

  15. Then Restart your computer and your drive will not shown in my computer.

  16. If you want access drive again, then follow all above steps and click on not configured or disabled.

Hide Drive using Disk Management


  1. Right-click on My Computer and then click Manage.
  2. In Computer Management Console open Storage by double clicking on it.
  3. Now, double-click on Disk Management Snap-in.
  4. Disk Management Console opens up, and you can see all drives of your PC.
  5. Choose the drive which you want to hide and right click on it. Choose ‘Change Letter and Paths’ and click on Remove button.
  6. If it asks for confirmation, say ‘Yes’. Now, you cannot see the hidden drive in My Computer.

Hide Drive using Command prompt (CMD)

  1. Open command prompt, type Diskpart and hit Enter.(If, it say yes or no click on yes)
  2. Type List Volume and hit Enter.

  3. hide drive using cmd
    List Volume
  4. Now type select volume and the number of the Drive. As shown in above image, here the number of drive D is 2. So type select volume 2
  5. Finally, type Remove Letter D and hit Enter.

  6. After that You will see a message – Diskpart successfully removed the drive letter or mount point.
To show the hidden drive, follow steps three steps Described above. Now type Assign Letter D and hit Enter. This will show the drive.