<link href="https://fonts.googleapis.com/css?family=Roboto:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic&amp;display=swap" rel="stylesheet"/>
2 minutes reading time (318 words)

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

You can configure this group policy setting to hide drives in File Explorer

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 only8
Restrict A, B and C drives only7
Restrict A, B, C and D drives only15
Restrict all drives67108863
Do not restrict drive0

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 

Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Friday, 31 October 2025
You can help support this website by buying me a coffee!
Buy Me A Coffee