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.

3. When you are here, find the policy Prevent access to drives from My Computer on the right panel and double click on it.

4. 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.

The changes are applied immediately. From now on, whenever other users try to access the drive, they will be shown this error message.

Note : 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
- 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
May be interested
- What is crapware? How to remove Crapware software from the systemthe most annoying thing that people hate on newly purchased computers is crapware. crapware is unnecessary software preloaded in newly purchased systems, slowing down pcs, causing system instability, creating crashes and consuming precious memory.
- Beware these coronavirus hacking threats, UK and US agencies warnhackers are using covid-19 to target people and their employers, say the uk's national cyber security centre and the us' cybersecurity and infrastructure security agency.
- Location data used for tracking COVID-19 has its limits, ACLU warnsgovernments across the world are relying on location data to track and contain the coronavirus pandemic, but the technology's effectiveness is severely limited and raises privacy concerns, the american civil liberties union said.
- Zoom sued for hiding security flaws, including alleged vulnerability to hackersthe video chat app has said it's working to address security and privacy issues.
- Prevent Zoombombing: Change these 4 Zoom settings now for secure video chatvideo-conferencing software zoom has been drawing attention from researchers and journalists lately for a number of potential privacy and security issues, as use of the platform surges due to an increase in coronavirus-related remote working.
- Zoom: Every security issue uncovered in the video chat appwith the novel coronavirus causing a surge in work-from-home activity, zoom has quickly become the video meeting app of choice: daily meeting participants on the platform surged from 10 million in december to 200 million in march.