A practical guide to hiding drive letters from File Explorer or making hidden drives visible again using built-in Windows tools.
Windows can hide a drive in several different ways. Some methods only remove the drive from File Explorer, while others remove the drive letter so the volume is not normally accessible by its previous path, such as D:\ or E:\.
Hiding a drive is not the same as protecting it with a password. If the drive contains private data, use BitLocker, device encryption, or another proper encryption solution. Hiding only changes visibility or access paths.
For most home users, the safest option is Disk Management: remove the drive letter to hide the drive, and add the letter back when you want to show it again.
This method hides a partition by removing its assigned letter. The data remains on the drive, but the volume will no longer appear as a normal drive in File Explorer.
Avoid removing the letter from the system drive, usually C:. Also be careful with partitions used by installed programs, games, libraries, backups, or sync clients, because their paths may stop working.
If you removed a drive letter earlier, you can show the drive again by assigning a new letter to the same volume.
D:, E:, or F:.Local Group Policy Editor can hide selected drives from File Explorer without removing their drive letters. This is useful when you want to keep the drive letter active but hide it from casual view.
gpedit.msc is normally available in Windows Pro, Enterprise, and Education editions. Windows Home users can use the Registry method below instead.
gpedit.msc, and press Enter.To make the drives visible again, open the same policy and set it to Not Configured or Disabled.
The policy above hides the drive icon, but it does not necessarily block every access path. To restrict access more strongly, configure Prevent access to drives from My Computer in the same Group Policy location.
The Registry method is useful on Windows Home or when you want to hide a specific drive letter manually. It uses the NoDrives value under the current user policy branch.
Editing the Registry incorrectly can cause system or user profile problems. Create a restore point or export the Registry key before changing values.
regedit, and press Enter.Registry pathHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Explorer key does not exist, create it under Policies.NoDrives.NoDrives, select Decimal, and enter the value for the drive letter you want to hide.| Drive letter | Decimal value | Drive letter | Decimal value |
|---|---|---|---|
| A: | 1 | N: | 8192 |
| B: | 2 | O: | 16384 |
| C: | 4 | P: | 32768 |
| D: | 8 | Q: | 65536 |
| E: | 16 | R: | 131072 |
| F: | 32 | S: | 262144 |
| G: | 64 | T: | 524288 |
| H: | 128 | U: | 1048576 |
| I: | 256 | V: | 2097152 |
| J: | 512 | W: | 4194304 |
| K: | 1024 | X: | 8388608 |
| L: | 2048 | Y: | 16777216 |
| M: | 4096 | Z: | 33554432 |
To hide several drives, add their values together. For example, to hide D: and E:, use 8 + 16 = 24. To hide D:, E:, and F:, use 8 + 16 + 32 = 56.
Open the same Registry key and either delete the NoDrives value or set it to 0. Then restart File Explorer or sign out and sign back in.
DiskPart can remove or assign drive letters from an elevated Command Prompt or Windows Terminal. This method is useful for administrators and scripted maintenance, but you must select the correct volume.
Command Prompt or Terminal as administratordiskpart
list volume
select volume 4
remove letter=E
exit
Replace 4 with the correct volume number and E with the drive letter you want to remove.
Command Prompt or Terminal as administratordiskpart
list volume
select volume 4
assign letter=E
exit
Always verify the size, label, and file system before running remove letter or assign letter. Selecting the wrong volume can break shortcuts, applications, or boot-related paths.
The mountvol command manages volume mount points. It can remove a drive-letter mount point without deleting data.
Command Prompt or Terminal as administratormountvol E: /D
This removes the E: mount point. The volume will no longer appear as drive E: in File Explorer.
First, list available volume names:
Command Prompt or Terminal as administratormountvol
Then assign the correct volume name back to a drive letter:
Examplemountvol E: \\?\Volume{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}\
Because the volume GUID must be chosen correctly, Disk Management or DiskPart is usually easier for most users.
| Method | Best for | Admin rights | Easy to reverse? |
|---|---|---|---|
| Disk Management | Safely removing or restoring a drive letter | Usually yes | Yes |
| Local Group Policy Editor | Hiding selected drives from File Explorer | Yes | Yes |
| Registry Editor | Windows Home users and manual policy control | Sometimes | Yes, if the value is removed |
| DiskPart | Advanced users, scripts, recovery environments | Yes | Yes |
| mountvol | Managing volume mount points from command line | Yes | Moderate |
Open Task Manager, find Windows Explorer, right-click it, and select Restart. This refreshes File Explorer without rebooting the whole PC.
If a drive remains hidden after you assign a letter, open gpedit.msc and check whether Hide these specified drives in My Computer is still enabled.
If you used the Registry method, go back to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer and remove NoDrives or set it to 0.
Open Disk Management and check whether the volume is shown as Healthy. If the partition is offline, unallocated, RAW, or missing, the problem is not only drive visibility.
NoDrives or configure a user-based Group Policy. Removing a drive letter in Disk Management affects the system more broadly, not just one user profile.The easiest way to hide a drive in Windows 10 or Windows 11 is to remove its drive letter in Disk Management. To show it again, assign a drive letter back to the same volume. If you only want to hide drive icons in File Explorer, use Local Group Policy Editor or the NoDrives Registry value. For command-line work, DiskPart and mountvol provide more advanced control over drive letters and mount points.
For most users, open Disk Management, right-click the target volume, choose Change Drive Letter and Paths, and remove the letter to hide the drive. To show it again, return to the same dialog and click Add. Use Group Policy or NoDrives only when you want to hide drive icons without removing drive letters.