How do You Hide a Drive in Windows 10 and 11?

Need a drive out of File Explorer? Learn two Windows ways to hide it and why hiding is not protection.

Fact-checked Reviewed by Aswin Vijayan Updated November 3, 2026 Based on 4 sources
Summary

Windows hides a drive when you remove its drive letter in diskpart or apply the Hide these specified drives policy. Both methods remove the drive from File Explorer. Neither method blocks access because the data remains on the disk. Use BitLocker or NTFS permissions when you need real protection.

You may want a drive to disappear from File Explorer so family members or coworkers do not browse it. Windows has two built in ways to do that.

Hiding a drive is not the same as protecting it. This guide shows both methods and the step that adds real protection.

What are the Ways to Hide a Drive in Windows?

MethodWhat it DoesBlocks Access
1. diskpart remove letterRemoves the drive letter from the volumeNo
2. Group Policy hide drives settingRemoves the drive icon from File Explorer and the Open dialogNo

How do You Hide a Drive With diskpart?

Microsoft documents remove as the diskpart command that removes a drive letter or mount point from the volume that has focus. You must select a volume first. See diskpart remove.

  1. Open Command Prompt as administrator.
  2. Enter diskpart and then list volume.
  3. Select your volume by number.
  4. Remove its drive letter.
Command Prompt (Admin)
diskpart
list volume
:: Replace 3 with the number of your volume
select volume 3
:: Replace D with the letter you want to remove
remove letter=d
exit

Microsoft states that you cannot remove drive letters on system, boot or paging volumes. Choose a data volume only.

How do You Show the Drive Again?

Select the same volume and give it a letter. Microsoft documents assign for this task. If the letter is already in use the command returns an error, so choose a free letter. See diskpart assign.

Command Prompt (Admin)
diskpart
list volume
select volume 3
assign letter=d
exit

How do You Hide a Drive With Group Policy?

Microsoft describes the policy Hide these specified drives in My Computer under User Configuration, Administrative Templates, Windows Components and File Explorer. It removes the drive icons from File Explorer and from the Open dialog box of programs. See Microsoft guidance on hiding drives.

Policy values use one bit per drive letter. Letter A has the value 1 and letter D has the value 8. Select the option for the drives you want to hide.

Does Hiding a Drive Protect Its Data?

No. Microsoft states that this setting does not prevent users from using other programs to reach local and network drives. It also does not stop users from viewing drive properties in Disk Management.

Microsoft points to other controls such as NTFS permissions when you need to block access. BitLocker encrypts a whole volume to protect data if a device is lost or stolen.

For a related task see how to dispose of a hard drive securely. For volume layouts see virtual hard disks in Windows.

Frequently Asked Questions

How do I Hide a Drive in Windows 10 and 11?

Use diskpart to remove the drive letter or apply the Group Policy setting. Both remove the drive from File Explorer.

Is the Data Still on a Hidden Drive?

Yes. Both methods hide the drive only. Data remains on the disk.

How do I Unhide a Drive?

Select the volume in diskpart and enter the assign command with a free letter. For the policy, set it to Not Configured.

Can Other Users Still Open a Hidden Drive?

Yes. Microsoft states that the policy does not prevent users from reaching drives through other programs.

How do I Protect a Drive Instead of Hiding It?

Use NTFS permissions to limit users and BitLocker to encrypt the volume.

Key Takeaways

  • Removing the drive letter hides a volume from File Explorer.
  • Group Policy removes drive icons from File Explorer.
  • Hidden drives remain open to other programs.
  • Assign a free letter to show a hidden volume again.
  • BitLocker and NTFS permissions protect data and hiding does not.

Sources and References

This guide follows Microsoft documentation.

  1. remove (Microsoft Learn) learn.microsoft.com
  2. assign (Microsoft Learn) learn.microsoft.com
  3. Using Group Policy Objects to Hide Specified Drives (Microsoft Learn) learn.microsoft.com
  4. BitLocker Overview (Microsoft Learn) learn.microsoft.com