07 November 2009

Hide drives in Explorer

The first two letters of "Vista" are the Roman numeral for 6. The version before 7! MIND BLOWING.

Back to the sad reality. This ugly registry hack lets you hide drives from being displayed (but they are still accessible by applications and the command prompt).

To calculate the key value, you need to add up the drive letters you want to hide based on A=1, B=2, C=4, D=8, E=16, F=32 ... etc. So to hide drives A and E, the decimal value to use is 17.
  1. Current user: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
    Everyone: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
  2. Add 32-bit DWORD key name "NoDrives", with the appropriate decimal value.
  3. Restart Explorer.
I created a fancy JavaScript form to help calculate the key value but Blogger chucked a fit with it.

Credit to How-To Geek.

No comments:

Post a Comment