If you want to prevent others from accessing a specific drive—like D:, E:, or a secondary partition—Windows 11 allows you to hide drives from File Explorer without deleting any data. This is useful for protecting backup partitions, work drives, or personal folders from accidental access.
The good news is that hiding a drive does not erase it. It simply removes it from visibility in File Explorer, and you can unhide it anytime.
Hide or Unhide Any Drive in Windows 11
The methods below explain how to hide or restore a drive using Disk Management, Group Policy, and Registry Editor. Follow the steps carefully.
1. Hide a Drive Using Disk Management (Remove Drive Letter)
This is the safest and most commonly used method.
- Right-click the Start button.
- Select Disk Management.
- Locate the drive you want to hide.
- Right-click the drive and select Change Drive Letter and Paths.
- Click Remove.
- Confirm the action.
The drive will immediately disappear from File Explorer, but your data remains intact.
To unhide it:
- Return to Disk Management.
- Right-click the drive.
- Select Change Drive Letter and Paths.
- Click Add.
- Assign a new drive letter.
The drive will reappear in File Explorer.
2. Hide a Drive Using Group Policy (Windows Pro/Enterprise)
This method hides the drive visually but does not remove its letter.
- Press Windows + R, type:
gpedit.msc - Press Enter.
- Navigate to:
User Configuration > Administrative Templates > Windows Components > File Explorer - Double-click Hide these specified drives in My Computer.
- Select Enabled.
- Choose the drive(s) to hide.
- Click Apply, then OK.
- Restart your PC.
To unhide:
- Set the policy back to Not Configured.
3. Hide a Drive Using Registry Editor (Advanced)
If you’re using Windows Home, you can modify the registry.
- Press Windows + R, type:
regedit - Press Enter.
- Navigate to:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer - Right-click the right panel and select New > DWORD (32-bit) Value.
- Name it:
NoDrives - Double-click it and enter the value corresponding to the drive you want to hide.
- Click OK and restart your PC.
To unhide:
- Delete the NoDrives value and restart.
Be cautious when modifying the registry.
4. Hide a Drive Using Command Prompt (Advanced Method)
You can also remove the drive letter using DiskPart.
- Open Command Prompt (Admin).
- Type:
diskpart - Type:
list volume - Identify the volume number.
- Select the volume:
select volume X - Remove the letter:
remove letter=E(Replace E with your drive letter.)
To restore:
assign letter=E
5. Restart Your PC
After hiding or unhiding a drive:
- Restart your computer.
- Open File Explorer to confirm the change.
Wrapping Up
Hiding or unhiding a drive in Windows 11 is a useful way to protect sensitive data without deleting anything. Whether you remove the drive letter using Disk Management or apply a policy-based restriction, the process is fully reversible.
With the right method, you can easily manage drive visibility in Microsoft Windows while keeping your files safe and organized.