to hide the drive icons hkey_current_user\software\microsoft\windows\currentversion\policies\explorer in the right hand pane

of the explorer key create a new dword value named nodrives double click it and use the following guide to determine what number to enter as the decimal value data to hide all drives, enter this decimal number: 67108863 which is the equivilant of 0x3ffffff in hex to hide any specific drive, enter the number corresponding to your drive letter as shown in the list below: i.e. to hide drive c: enter 4 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 to hide any combination of drives, simply add up the values for each drive and enter the total as your value. for example, say you want to hide d: and g: d=8 g=64 total =72 which is what you would enter reboot or log off and log in again for the changes to take effect. note - this only hides your drives in my computer and explorer. it does not prevent someone from using the command line from accessing the drives.

making drives inaccessible as an alternative to hiding a drive, you can opt to make it inaccessible so that an error messagw will pop up when the drive is double clicked. here's how to do that: go to the same key: hkey_current_user\software\microsoft\windows\currentversion\policies\explorer in the right hand pane for the explorer key, create a new dword value named noviewondrive double click the new value and use the same method as used for hiding drive icons to determine the decimal number to enter. once done, reboot or log off and login in again. then try double clicking the drive you made inaccessible. you should receive a message stating that the drive cannot be accessed.

Sign up to vote on this title
UsefulNot useful