SysChat is a free online computer support community. Ask questions, share resources, contribute knowledge and discuss technology. Join our growing community to access all features. Register Now!

SysChat » Tips 'n' Tricks » Security » Disallow users to see certain drives

Security

tips on computer security, virus, spyware and malware prevention

Comment
 
LinkBack Tip Tools
 

Disallow users to see certain drives

By William_Wilson
11-18-2006
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!
Comment





Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is on
Smilies are on
[IMG] code is on
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are on



» Ads



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