Prevent Access Drives from other Users
Is there a way to choose what local drives may be viewed by specific users? How can I restrict access to certain drive on the machine? Windows 10 comes with a group policy setting that allows you to prevent other users from accessing to the content of selected drives. This is useful if you share your PC with others, but you want to restrict access to a drive for other accounts in the same computer.
Note: This setting won’t prevent users from using programs (for example, Command Prompt) that access the local drives. If you need to a professional folder protection software, you can try Protect My Folder
Method 1: Prevent Access To Drives in My Computer in Windows 10 Using Group Policy
- Press the Windows key + R to open the Run box. Type gpedit.msc and hit Enter.
- Once Local Group Policy Editor is launched, use the left pane to navigate to User Configuration > Administrative Templates > Windows Components > File Explorer. Now go to the right pane and scroll to find “Prevent access to drives from My Computer” and double-click on it.
- When the configuration box pops up, change the setting to Enabled. Next move to the Options section at the bottom left, and use the drop-down menu to select the combination of disk drives for which you want to prevent user access. Click Apply and then OK.
“This operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator“
Method 2: Prevent Access To Drives in My Computer in Windows 10 Using Registry Editor
- Once the Registry Editor window is launched, navigate to the following key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
If the Explorer key does not exist, you can right-click on Policies, select New -> Key and name it Explorer. - Right-click on the Explorer key in the left pane, and then select New -> DWORD (32-bit) Value, name it NoViewOnDrive.
- Next, double-click NoViewOnDrive and set its value according to following list (in Decimal):
- For example, if you want to lock drive D, you have to set the value to 8. If you want to lock both Drive A and drive D, you would add 1 (A) + 8 (D) which means the value should be set to “9”.
- When it’s done, close Registry Editor. Restart Windows for the change to take effect.
Tags
Computer tricks