How to block users from accessing drives for security in Windows
When you don't want other users to access some or all drives, you can use a GPO to quickly restrict access. Here are the steps to prevent users from accessing a drive in Windows.
Should access be restricted to drives in Windows?
By default, Windows allows almost any user to access any drive or file without any restrictions. Of course, depending on the drive, such as drive C, Windows may impose some restrictions to prevent users from modifying or deleting data. In general, this is not a big deal in most cases.
However, there may be times when you want to prevent users from accessing a specific drive or all drives for several reasons. For example, maybe you are sharing your PC with someone, but you do not want them to access the drive and find your personal data. In those cases, you can use a simple GPO to prevent users from accessing drives in Windows.
If you need to, follow the steps below to prevent users from accessing the drive in Windows 10.
Note : The steps presented below can also be applied in Windows 7 and 8.
Steps to restrict or block users from accessing the drive
To prevent users from accessing drives or partitions, we will use a simple GPO or Group Policy Object. All you need to do is enable the policy and direct it to the drives you want to restrict.
1. Because we need to change a Group Policy Object, open the Group Policy Editor. To do that, open the Start menu, search for Edit Group Policy and click on the result to open the Group Policy Editor.
2. In Group Policy Editor , all policies are divided into different categories or directories. You can see them on the left panel. Expand the directory structure and go to the following location.
User Configuration → Administrative Templates → Windows Components → File Explorer
Note : If you're on Windows 7, look for the Windows Explorer folder in Windows Components.
If you are on Windows 7, look for the Windows Explorer folder in Windows Components3. When you are here, find the policy Prevent access to drives from My Computer on the right panel and double click on it.
Find policy Prevent access to drives from My Computer4. The above action will open the Properties window . Here, select the Enabled option and the drives you want to restrict from the drop-down menu in the Options section . In this case, the article is restricting access to all drives. Click the Apply button and click OK to save the changes.
Select the Enabled option and the drives you want to restrict from the drop-down menu in the Options sectionThe changes are applied immediately. From now on, whenever other users try to access the drive, they will be shown this error message.
Error message when unauthorized user accessNote : If the policy does not apply, restart Windows or execute gpupdate /force
with admin rights to force the policy settings.
To restore drive access, follow the same steps but choose Not configured or Disabled in the Properties window in step 4.
You should read it
- 6 methods to read Mac drives in Windows
- How to map WebDAV drives in Windows 10
- Guide to controlling device security built-in in Windows (Part 1)
- Windows 8 can create virtual optical drives themselves
- How to open Disk Management on Windows 11
- How to map network drives in Windows 10
- How to display this list of This PC Windows 10 drives
- Chrome 18 'blocks' users from accessing Google services
- How to combine multiple hard drives into a Volume on Windows 10
- How to Get to My Computer on Windows 8
- How to enter Windows XP mode from Windows 7 to Windows 10
- 7 mistakes easily 'kill' SSDs
Maybe you are interested
How to Enable and Disable Tabs in File Explorer on Windows 11
5 macOS Sequoia Features Not Available on Windows 11
Why does Windows operating system have such a bad reputation?
Quickly fix Unmountable Boot Volume error on Windows 10/11
15 safe software and application download websites for Windows
How to Fix Clipboard History Error in Windows 11 Latest Update