Each disk drive or partition volume of permanent built-in hard disk or plugged-in external USB portable hard disk or removable USB flash drive storage medium is a logical drive which has a visible drive letter which allows user to access the drive through Windows Explorer or My Computer.

Windows operating system such as Windows 7, Windows Vista, Windows XP and Windows Server has the ability to control which drives that are visible in My Computer or Windows Explorer folder tree, by hiding and removing the selected drives or all drivers (together with their icons and drive letters) from all folder tree view of Explorer and My Computer drive listing. The invisible drives can still be accessed, opened and explored by directly typing the drive letter in Location Bar.

  1. Run Registry Editor (RegEdit).
  2. Navigate to one of the following registry key.

    To change for current logged on user only:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

    To change to all users system-wide:

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

  3. Right click on blank space on the right pane, select New -> DWORD (32-bit) Value to create a new REG_DWORD registry entry. Name the new registry value as NoDrives.
  4. NoDrives registry value uses a mathematical hexadecimal numeric value to define local, removable storage device and network drive visibility to determine whether to hide or show logical drive in the computer. The lower 26 bits of the 32-bit registry value are corresponding and representing drive letters from A to Z, and by setting its value to 0, the drive will be unhidden and visible, while with value of 1, the drive is hidden and invisible.

    To make the work for excluding the drive from view in Windows Explorer easier, just enter the sum of decimal value for hidden drive of all drives that want to make hidden. The respective decimal values for each drive letter are as follow:

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

    All Drives: 67108863

    For example, to hide drive C and drive D, add the numeric values of 4 (for drive C) and 8 (for drive D), which equals to 12. As such, set the value date of NoDrives to 12 to hide drive C and D from Explorer view.

    Hide Drives

    To make all drives hidden, set value date of NoDrives to 67108863.

    Note: Remember to set the Base as Decimal when entering the value above

  5. Restart the computer for the setting to take effect.

Windows Explorer without Drive Letters

Alternatively, there is a “NoDrives Manager” (NoDrvMan) software utility that can automatically hide Windows logical drives by modifying the registry. What user needs to do with NoDrives program is just to select and tick the drive letters to make hidden. NoDrives Manager to allow users to set a password protection to prevent unauthorized user to run the program and re-enable the hidden drives.

NoDrives Manager

Download NoDrives Manager from sourceforge.net.

Note: The hidden drives will still appear in File Manager. To remove File Manager, delete or rename winfile.exe.