How-to: Hide drive letters from Windows Explorer - "NoDrives"

Hide drive letters in Windows Explorer and the standard File, Open dialog box.

A: B: C: D: E: F: G: H: I: J: K: L: M: None
1 2 4 8 16 32 64 128 256 512 1024 2048 4096 0
N: O: P: Q: R: S: T: U: V: W: X: Y: Z: ALL
 
8192 16384 32768 65536 131072 262144 524288 1048576 2097152 4194304 8388608 16777216 33554432 67108863

Result: Decimal

Copy the result into the registry to hide the drive letter(s)

User Key:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]

System Key:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]

Value Name: NoDrives
Data Type: DWORD

After changing the registry, logoff or reboot so that it takes effect.

This entry stores the setting of the 'Hide these specified drives' in My Computer Group Policy. Group Policy adds this entry to the registry when you enable the policy. If you disable the policy or set it to Not configured, Group Policy deletes this entry from the registry, and the system behaves as though the value is 0x0.

Drive mappings hidden with a nodrives registry setting are still available, just type the drive letter into the Windows explorer address bar.

This page can also be used to calculate other bitmask values used in various places in the Widows registry

“The dream is the small hidden door in the deepest and most intimate sanctum of the soul, which opens to that primeval cosmic night that was soul long before there was conscious ego and will be soul far beyond what a conscious ego could ever reach” ~ Carl Jung

Related commands:

Convert - Convert between Decimal and Binary.
REG - Registry: Read, Set, Export, Delete keys and values.
REGEDIT - Import or export registry settings.


 
Copyright © 1999-2021 SS64.com
Some rights reserved