Link to home
Start Free TrialLog in
Avatar of venkataramanaiahsr
venkataramanaiahsr

asked on

Restricting drive access using group policy

I have a remote user for whom i need to give mapped drive access only.  ( i have mapped a shared folder in the server). I want to hide all other drives. But in group policy i have two options  " Prevent access to my drive " and " hide these speicfice drive". in these option i have option to hide/restrict  only A,B, C, D drives.
how to hide say a g drive or h drive.


Avatar of subhashchy
subhashchy
Flag of India image

Add a reg key (depend on your needs , either HKLM or HKCU)

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

Value name : NoDrives
Type : Reg Dword
Value Data :
Decimal values for the drives .
To hide A:  1,
To hide B :  2,
To hide C :  4,
To hide D : 8,
To hide E : 16,
To hide F : 32,
To hide G : 64
To hide H : 128

By this time you know how this algorithm works, You can calculate the values yourself for a particular number
If you want to hide more than one drive, just sum up the values. Like to hide E and F, the value data would be “16+32¿ = 48

ASKER CERTIFIED SOLUTION
Avatar of Mike Kline
Mike Kline
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Just give the user a mapped drive for what they need. If the other drives are not present then you do not need to hide them.