Hide drives in File Explorer using Registry or Group Policy Object (GPO)
For IT Admins - How to hide C and D drives in Windows File Explorer using GPO or registry value "NoDrives" and what to do if "Hide these specified drives in My Computer" isn't working
Hide these specified drives in My Computer using GPO
User Configuration
Administrative Templates - Windows Components - File Explorer
Hide these specified drives in My Computer
Enabled
Restrict A, B, C and D drives only
"Hide these specified drives in My Computer" not working?
I had to configure this recently on Citrix Virtual Desktop and when testing the Group policy setting "Hide these specified drives in My Computer", it just didn't work
User Configuration - Administrative Templates
Windows Components - File Explorer
Hide these specified drives in My Computer
Enabled
Restrict A, B, C and D drives only
I managed to hide drives using the HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer registry key instead
Hide drives in File Explorer using registry "NoDrives"
You can use this registry key and the "NoDrives" value to hide drives in File Explorer
HKLM
SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
Value: NoDrives
Registry "NoDrives" values
| Restrict A and B drives only | 3 | 
| Restrict C drive only | 4 | 
| Restrict D drive only | 8 | 
| Restrict A, B and C drives only | 7 | 
| Restrict A, B, C and D drives only | 15 | 
| Restrict all drives | 67108863 | 
| Do not restrict drive | 0 | 
Example: GPO with registry setting to hide drives
Registry setting to Hide A, B, C and D drives
GPO to create registry entry to hide drives
Computer Configuration - Preferences - Windows Settings - Registry
HKLM
SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
NoDrives
DWORD
Value 15
Base Decimal 
 
									 
									 
									
Comments