SysChat

SysChat (http://www.syschat.com/forum.php)
-   Security (http://www.syschat.com/tips-n-tricks/security/)
-   -   Disallow users to see certain drives (http://www.syschat.com/disallow-users-to-see-certain-drives-1203.html)

William_Wilson 11-18-2006 02:14 PM

Disallow users to see certain drives
 
Have a drive you'd rather some users not be able to access?
Here's a little registry hack to deny others that right.

Each drive letter corresponds to a binary decimal number, starting from 0 going to 25:
Simply if the drive letter is C, since C is the third letter in the alphabet the number you need is 2^2 = 4 or drive A is 2^0 = 1.

To remove multiple drives simple add up there corresponding values and use that.
To Remove all drives use the value 67108863 (the sum of all drive letters A-Z)
*for interests sake this value is: (2^26) - 1, since we start at 0

Deny the current user: (need to be logged on under their account)
path:
Code:

KEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Deny for the entire computer:
path:
Code:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
*for this i would recomend you do both!

create a REG_DWORD key named NoDrives
*right click in right pane

select it and make it's data entry the number you determined earlier. That's it, it usually requires a restart to take effect.

*NOTE these drives still display under fileman.exe. To complete this disabling you will need to rename this file or delete it!


All times are GMT -4. The time now is 10:24 PM.


Copyright © 2005-2013 SysChat.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54