Skip to content
Windows

How to Hide Specific Drives in Windows 11

Richard
Written by
Richard
Updated 6 min read
How to Hide Specific Drives in Windows 11
How to Hide Specific Drives in Windows 11
Before you start
  • 21 steps
  • Needs administrator rights
  • Group Policy needs Windows 11 Pro, Enterprise or Education
  • Includes a restart or sign-out

Hiding specific drives in Windows 11 removes extra partitions or drives from File Explorer so you only see the ones you want. The Registry Editor (a tool that stores system settings) controls which drive letters appear in This PC and the sidebar. Nothing is deleted from the drive, and the hardware works as before.

You can still open any hidden drive by typing its letter into the File Explorer address bar. The whole process takes less than 2 minutes. It works the same on Home and Pro editions of a currently supported Windows 11 version (25H2 or 26H2), because both include the Registry Editor.

⚡ Quick Answer

Open the Registry Editor (regedit), go to 🗝️HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer, and create or edit a DWORD value named NoDrives. Its number sets which drive letters File Explorer hides. The drive keeps its data, and you can still reach it by typing its letter into the address bar.

Advertisement

How Can You Access Hidden Drives?

A hidden drive is hidden only from the File Explorer view. It keeps its letter and its data, and Windows can still reach it, so you never need to undo anything to get into it. Use any of these methods:

  • Click the File Explorer address bar, type the drive letter followed by a colon (for example, F:), and press Enter. The drive’s contents open as normal.
  • Open Disk Management (a built-in tool for managing storage devices) by typing diskmgmt.msc in the Start menu search and pressing Enter. Find your volume in the list, right-click it, and select Open. On some builds the same menu item is called Explore.
  • Open Command Prompt or Windows Terminal, type the drive letter with a colon, and press Enter. The prompt switches to that drive.
📝NoteChanging these registry keys needs administrative privileges. If you are signed in with a standard account, Windows asks for an administrator password.
Advertisement

Follow These Easy Steps to Hide Drives

Step 1Open the Registry Editor

  1. Press Win+R to open the Run dialog.
  2. Type regedit in the box and press Enter.
  3. If User Account Control asks whether you want to allow the app to make changes, click Yes. The Registry Editor window opens, with a folder tree on the left and values on the right.

That’s it for this part. You now have the Registry Editor open and ready for the next steps.

⚠️ Admin Required

Step 2Go to the Explorer Folder in Registry

Back up your registry before you change anything, because incorrect edits can cause system instability. In the Registry Editor, open the File menu and select Export. Save the file somewhere you can find it.

If something goes wrong, double-click the exported file to restore the backup. Creating a restore point first is a sensible extra precaution.

Advertisement
🗝️Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer

Here’s what it looks like:

hide drive windows 11
hide drive windows 11

Compare your Registry Editor window with the image above. Check this carefully, because the next steps only work if you are in the right place.

Step 3Choose to Hide or Unhide Drives

To Unhide All Drives

Use these steps to show your drives again, or to remove a hidden-drive entry that already exists:

  1. Look at the right-hand pane for a value called NoDrives.
  2. If you see NoDrives, right-click it and select Delete.
  3. Click Yes when Windows asks you to confirm. The value disappears from the list.

That’s it. Every drive becomes visible again once File Explorer restarts (see the restart steps below). If you prefer to keep the entry, change its data to 0 instead, which has the same effect.

hide drive windows 11 delete
hide drive windows 11 delete

Whether you hide or unhide drives comes down to one setting: NoDrives. If it is present, it controls which partitions File Explorer shows. Delete it to show everything again. Create it, or edit its number, to hide the volumes you choose.

Advertisement

On Windows 11 Pro, you can use a Group Policy setting instead of the registry. Group Policy is a management tool that Home does not include, so Home users should follow the registry steps further down. The setting avoids working out the drive number by hand, because you pick the drives from a list.

  1. Open the Local Group Policy Editor from the Start menu search.
  2. Go to User Configuration Administrative Templates Windows Components File Explorer.
  3. Double-click Hide these specified drives in My Computer. The setting’s window opens.
  4. Select Enabled, then choose the drives to hide from the drop-down list under Options.
  5. Click OK. The setting now shows as Enabled in the list.

You should now have the drives hidden through Group Policy. Sign out and back in, or restart File Explorer as described below, to see the change. To reverse it, set the policy back to Not Configured.

To Hide Specific Drives

  1. If you don’t see NoDrives in the right pane, right-click a blank space there and choose New > DWORD (32-bit) Value. A new entry appears with its name highlighted for editing.
  2. Type the name NoDrives and press Enter. Check the spelling, because Windows ignores a value with the wrong name.
  3. Double-click NoDrives to edit it. A small edit window opens.
  4. Under Base, select Decimal.
  5. In the Value data box, enter the number that matches the drive or drives you want to hide. The table below lists the numbers.
  6. Click OK. The new number shows in the Data column next to the value.
Advertisement

That’s it for creating the value. NoDrives now holds the number for the drives you want hidden, and it takes effect after the restart steps below.

Windows 11 File Explorer showing hidden drive not displayed in This PC
Windows 11 File Explorer showing hidden drive not displayed in This PC

Each drive letter has its own number, starting with A and doubling for each letter after it. Enter the number for the drive you want to hide, and Windows hides that drive in File Explorer.

To change your choice later, double-click NoDrives again and enter a new number. The table below lists the number for each letter.

Drive Letter Numbers Table

Drive LetterNumber to Enter
A1
B2
C4
D8
E16
F32
G64
H128
I256
J512
K1024
L2048
M4096
N8192
O16384
P32768
Q65536
R131072
S262144
T524288
U1048576
V2097152
W4194304
X8388608
Y16777216
Z33554432
💡TipTo hide several partitions at once, add their numbers together. To hide both the E drive (16) and the F drive (32), enter 48 (16 + 32). Make sure the base is still set to Decimal before you click OK.
Advertisement

Step 4Finish Up

The change does not show until File Explorer reloads. Restarting File Explorer on its own is quicker than restarting the whole PC.

  1. Close the Registry Editor.
  2. Press Ctrl+Shift+Esc to open Task Manager.
  3. Find Windows Explorer under Processes.
  4. Right-click it and choose Restart. The taskbar and open folder windows flicker or disappear for a moment, then return.

If you prefer, skip steps 2 to 4 and sign out and back in, or restart your PC. Either one also applies the change.

That’s it. Open This PC and check that the drives you chose are no longer listed. If they still appear, re-check the number in NoDrives and restart File Explorer again.

Summary

To bring the drives back, delete the NoDrives value or set it to 0, then restart File Explorer or sign out and back in. If you used the Group Policy setting instead, set it to Not Configured. Hidden drives stay reachable at any time by typing their letter into the File Explorer address bar.

Have a question about this guide?

Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.

Tags: #Windows 11

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *