How to Hide Specific Drives in Windows 11
- 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.
Open the Registry Editor (regedit), go to 🗝️HKEY_LOCAL_MACHINE\
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.mscin 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.
Follow These Easy Steps to Hide Drives
Step 1Open the Registry Editor
- Press Win+R to open the Run dialog.
- Type
regeditin the box and press Enter. - 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.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\ExplorerHere’s what it looks like:

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:
- Look at the right-hand pane for a value called
NoDrives. - If you see
NoDrives, right-click it and select Delete. - 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.

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.
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.
- Open the Local Group Policy Editor from the Start menu search.
- Go to User Configuration Administrative Templates Windows Components File Explorer.
- Double-click Hide these specified drives in My Computer. The setting’s window opens.
- Select Enabled, then choose the drives to hide from the drop-down list under Options.
- 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
- If you don’t see
NoDrivesin 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. - Type the name
NoDrivesand press Enter. Check the spelling, because Windows ignores a value with the wrong name. - Double-click
NoDrivesto edit it. A small edit window opens. - Under Base, select Decimal.
- In the Value data box, enter the number that matches the drive or drives you want to hide. The table below lists the numbers.
- Click OK. The new number shows in the Data column next to the value.
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.

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 Letter | Number to Enter |
|---|---|
| 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 |
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.
- Close the Registry Editor.
- Press Ctrl+Shift+Esc to open Task Manager.
- Find Windows Explorer under Processes.
- 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.
Did this guide fix your problem?
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.
No comments yet — be the first to share your thoughts!