Drives

How to prevent users from accessing Drives in This PC on Windows 10

How to prevent users from accessing Drives in This PC on Windows 10

If you want to prevent users from accessing the Drives in File Explorer, then the Local Group Policy Editor has a setting that allows admins from restricting access to the C drive or all the drives visible in the This PC section. You can also do this using the Registry Editor.

Although you can hide a drive, the user can access the drive if he/she comes across the drive, in some other way. This tutorial is handy since users cannot access a specific drive or all drives to save a file or make changes. When you enable this setting other users will not be able to save images, videos, documents, etc. However, all your installed programs will run without any error.

Prevent users from accessing Drives in Windows 10

To prevent users from accessing drives in Windows 10 Explorer:

  1. Press Win+R to open the Run prompt.
  2. Type gpedit.msc and hit the Enter button.
  3. Navigate to File Explorer in User Configuration.
  4. Double-click on Prevent access to drives from My Computer.
  5. Select Enabled.
  6. Select the drive letter from the drop-down list.
  7. Click Apply and OK to save.

Open the Local Group Policy Editor on your computer. For that, press Win+R, type gpedit.msc and hit the Enter button.

Next, navigate to the following path-

User Configuration > Administrative Templates > Windows Components > File Explorer

Find the setting called Prevent access to drives from My Computer and double-click on it on your right-hand side. Select the Enabled option and expand the drop-down menu.

Here, it is possible to select the drive letter. You can choose:

or any other option as per your requirement. At last, click the Apply and OK buttons to save the change.

Following that, whenever you try to open the selected drive, you will be greeted with an error message saying the restriction.

In case you want to allow everyone to access all the drives or lift the barrier, go to the same setting, and select Not Configured option.

Using Registry Editor

In case you want to do the same with Registry Editor, you need to open the Registry Editor and follow this path-file

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer

Right-click on Explorer, select New > DWORD (32-bit) value and name it as NoViewOnDrive.

Next, double-click on it, set the value as (to prevent C drive), or 3ffffff (to restrict all drives). Then, click OK to save the change.

That's all!

Best Gamepad Mapping Apps for Linux
If you like to play games on Linux with a gamepad instead of a typical keyboard and mouse input system, there are some useful apps for you. Many PC ga...
Instrumente utile pentru jucătorii Linux
Dacă vă place să jucați jocuri pe Linux, este posibil să fi folosit aplicații și utilitare precum Wine, Lutris și OBS Studio pentru a îmbunătăți exper...
Jocuri HD remasterizate pentru Linux care nu au avut niciodată lansare Linux mai devreme
Mulți dezvoltatori și editori de jocuri vin cu remasterizarea HD a jocurilor vechi pentru a prelungi durata de viață a francizei, vă rog fanilor să so...