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
Restrict A, B, C and D drives only
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
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
| 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 |
Computer Configuration - Preferences - Windows Settings - Registry
HKLM
SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
NoDrives
DWORD
Value 15
Base Decimal
Comments