Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can local drive's be hidden? 3

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Guys is it possible to hide the local drive's from "MY COMPUTER" i am running WIN2k pro.

cheers
Chris
 
You can hide disk drives from the users, using a registry key entry. The value that controls drive hiding is actually a bit mask. HKCU\software\microsoft\windows\currentversionj\policies\explorer\NODRIVES is a REG_DWORD which makes it 32 bits long. Since the system can map 26 drives, this mapping works out very well. The upper six bits are ignored, and the remaining 26 bits map to a drive letter, with A: in the right most position and Z: in the left most. For example
00000000000000000000000000
ZYX CBA

To turn of drives A, B, C, D you end up with a mask value of 00000000000000000000001111. To turn of all drives, use a 1 in all the bits.
There is only one problem, if your drive letters change, say when you install a new hard drive, your NODRIVE values are shifted and you may find that a drive has vanished.
 
Create a new or edit an existing policy to either Hide the drives you want or disable the drives you want. Joe


 
Tweak UI from Microsoft and other dowwnload sites has a GUI that makes this operatiln trivial for local drives.
 
There are many programs out to help figure out the binary value, one that I use is from a citrix site called and is bundled into their "Methodology in a Box 2.1" (zip downloadable from their site...) and the actual program is called: "Hidecalc Version1 by Sean Hegarty 2000"
Hope that helps!
Paintballer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top