"NoDrives" Registry policy - how does it work?


Baseband Member
This may be an incredibly boring subject to many people but...

For anyone who's familiar with the hide drives registry policy I've recently discovered that it can also be stored as a "Binary" value. I've dabbled with this many years ago but I remember it was stored as a much simpler Decimal value and you could easily distinguish the drives by mathematically deducting each drive value (that doubles from A .. Z - 1, 2, 4, 8, etc). However this Binary value isn't so simple, and in fact I have no idea how Windows determines the drives from the values.

For example:

A: 01 00 00 00
B: 02 00 00 00
C: 04 00 00 00
D: 08 00 00 00
E: 10 00 00 00
F: 20 00 00 00
G: 40 00 00 00
H: 80 00 00 00

So if you wanted to hide A, B, C, and D the value stored would be 15 00 00 00, but using the same technique as with Decimal and mathematically deducting each value (starting from H) it would instead identify E, C, and A... but somehow Windows correctly hides the drives.

Maybe I'm approaching this the wrong way but does anybody know how it does this?
Top Bottom