How to hide an entire drive from prying eyes on Windows 10

On Windows 10, you can find a number of reasons to hide files you store on your computer. Typically, the easiest way to hide content is to use File Explorer or Command Prompt. However, if you're dealing with a lot of files, it's not ideal to hide the content individually. A more suitable solution would be to hide an entire drive to prevent other users from seeing your private files.

If you want to keep specific files or drives under wraps, Windows 10 lets you hide specific drives with at least three different tools, including using Disk Management to set a mount point and making the folder a hidden item or removing the drive letter. You can use the Registry to hide any drive you want manually, or the Local Group Policy editor to hide certain drives from your computer.

In this Windows 10 guide, we'll walk you through the steps to hide an entire drive to prevent users from snooping into your files.

How to hide a drive using Disk Management

Using Disk Management, you can hide an entire drive by mounting a drive as a folder or removing the letter from the drive.

How to hide a drive using a mount point

The easiest way to prevent a drive from appearing in File Explorer is to mount it as a folder, instead of using a drive letter, and making it hidden.

To mount a drive as a folder and make it invisible, do the following:

  1. Use the Windows key + X keyboard shortcut and select Disk Management.
  2. Right-click the drive you want to hide and choose Change Drive Letter and Paths.
  1. Select the drive letter and click the Remove button.

  1. Click Yes to confirm.
  2. Right-click the drive again and select Change Drive Letter and Paths.
  3. Click the Add button.

  1. Select the Mount in the following empty NTFS folder option.

  1. Click the Browse button.
  2. Navigate to the location you want to create the mount point. For example, C:.
  3. Click the New Folder button.
  4. Type the descriptive name for the folder. For example, secretDrive.
  5. Select the newly created folder and click OK.

  1. Click OK.
  2. Open File Explorer (Windows key + I).Quick Tip: To keep the drive invisible, make sure in the View tab on File Explorer, the Hidden items option is clear.
  3. Navigate to the path you specified as a mount point.
  4. Right-click the mount point, and select Properties.

  1. On "Attributes," check the Hidden option.

  1. Click Apply.
  2. Select the Apply changes to this folder only option, as we're just trying to hide the drive.

  1. Click OK.
  2. Click OK again.

Once you completed the steps, the drive will no longer appear in File Explorer, but you can still access its content by navigating the location using the mount point path (e.g., C:\secretDrive) in the File Explorer address bar or Command Prompt.

You can always revert the changes by doing the following:

  1. Use the Windows key + X keyboard shortcut and select Disk Management.
  2. Right-click the drive you want to hide and choose Change Drive Letter and Paths.
  3. Select the mount point and click the Remove button.
  4. Click Yes to confirm.
  5. Right-click the drive again and select Change Drive Letter and Paths.
  6. Click the Add button.
  7. Select the Assign the following drive letter option.
  8. Select a new letter for the drive.

  1. Click Apply.
  2. Click OK.

How to hide a drive by removing the drive letter

Alternatively, you can remove the drive letter to hide files and folders you have on a secondary drive. However, this method will prevent anyone (including you) from accessing its content. You should use these steps to hide content you rarely use, such as backups.

  1. Use the Windows key + X keyboard shortcut and select Disk Management.
  2. Right-click the drive you want to hide and choose Change Drive Letter and Paths.
  3. Select the drive letter and click the Remove button.

  1. Click Yes to confirm that you're removing the drive letter.

After you have completed the steps, the entire drive will become invisible to all users.

When you need to access the files again, you can follow the same steps, but on step No. 3, select the Assign the following drive letter option and pick a new letter for the drive.

How to hide a drive using Registry

In this case, perhaps the best way to hide a particular drive on your computer would be using the Registry.

Warning: This is a friendly reminder to let you know that editing the registry is risky, and it can cause irreversible damage to your installation if you don't do it correctly. It's recommended to make a full backup of your PC before proceeding.

  1. Use the Windows key + R keyboard shortcut to open the Run command.
  2. Type regedit, and click OK to open the registry.
  3. Browse the following path:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\ Explorer
  4. Right-click on the right side, select New, and click on DWORD (32-bit) Value.

  1. Name the new DWORD NoDrives and press Enter.
  2. Double-click the newly created DWORD.
  3. Under "Base," select the Decimal option.
  4. On "Value data" enter the decimal number that represents the drive letter you want to hide. For the purpose of this guide, we'll be using value 16, because we're hiding the E: drive.If you want to hide multiple drives, you'll need to add the decimal numbers. For example, if you're trying to hide drive D: and E:, you'll need to add 8 + 16, which means that the value you need to enter is 24.Quick Tip: You can use these decimal numbers as reference to hide specific drives: A: 1, B: 2, C: 4, D: 8, E: 16, F: 32, G: 64, H: 128, I: 256, J: 512, K: 1024, L: 2048, M: 4096, N: 8192, O: 16384, P: 32768, Q: 65536, R: 131072, S: 262144, T: 524288, U: 1048576, V: 2097152, W: 4194304, X: 8388608, Y: 16777216, Z: 33554432, ALL: 67108863.

  1. Click OK.
  2. Close the Registry.
  3. Restart your computer to apply the new changes.

Once your computer rebooted, you'll no longer see the drive listed in File Explorer. However, you'll still be able to access the drive content by navigating the location using the drive path (e.g., E:) in the File Explorer address bar or Command Prompt.

At any time you can revert the changes by following the same steps, but on step No. 3, make sure to right-click and delete the NoDrives DWORD.

How to hide a drive using Group Policy

If you're running Windows 10 Pro, Enterprise or Education, you can also use the Local Group Policy editor to hide specific drives. However, unlike the Registry, you're only available to restrict a limited number of drive combinations.

To hide specific drives using Group Policy, do the following:

  1. Use the Windows key + R keyboard shortcut to open the Run command.
  2. Type gpedit.msc and click OK to open the Local Group Policy Editor.
  3. Browse the following path:User Configuration > Administrative Templates > Windows Components > File Explorer
  4. Double-click the Hide these specified drives in My Computer policy.

  1. Select the Enabled option.
  2. Under "Options," select the drive combinations you want or select the Restrict all drives option from the drop-down menu.

  1. Click Apply.
  2. Click OK.

Once you completed the steps, the drives you specified will no longer appear in File Explorer without having to restart your computer. However, remember that you're only removing the drive icons, you'll still be able to access the drive content by navigating the location using the drive path (e.g., C:) in the File Explorer address bar or Command Prompt.

While using the Local Group Policy editor is very specific on the drives you can hide on Windows 10. It's still a good option if you're only trying to prevent users from messing around with files inside the C: drive.

It should be noted that there is a way to customize this policy to make more drive combination available, but it's something aimed at enterprise networks, and it goes beyond the scope of this guide.

If you want to revert the changes, you can follow the same instructions mentioned above, but on step No. 5 select the Not Configure option.

Wrapping things up

The ability to hide drives on Windows 10 is only meant to keep users out of your private files and to protect specific drives from being misused. This doesn't prevent users from using different methods to gain access your content inside the hidden drive.

If you store sensitive data on your device, and you don't want that data to fall into the wrong hands — if it gets lost or stolen — you should be using BitLocker or another third-party tool to encrypt the entire drive.

While we're focusing this guide on Windows 10, you can also use these instructions to hide specific drives on Windows 8.1 and Windows 7.

More Windows 10 resources

For more help articles, coverage, and answers to common questions about Windows 10, visit the following resources:

Mauro Huculak

Mauro Huculak is technical writer for WindowsCentral.com. His primary focus is to write comprehensive how-tos to help users get the most out of Windows 10 and its many related technologies. He has an IT background with professional certifications from Microsoft, Cisco, and CompTIA, and he's a recognized member of the Microsoft MVP community.