How to block access to a computer's hard drive on Windows 10

How to block access to Windows computer's hard drive? How to block users from accessing any hard drive partition, or block access to the hard drive.

Hard drive (HDD /  SDD ) is the most popular data storage device today, especially on desktop computers, laptops, surveillance camera systems in buildings, apartments . And the capacity of the drive Hard is also quite large now, not as narrow as it used to be.

And as you have all seen, right after the  installation of Windows is  complete (for new computers), users tend to  divide the hard drive  into multiple partitions with smaller capacity, so what is the reason?

The first is that it makes it easier for the owner of that computer to manage their data, each partition has its own data type . The second is to limit data loss compared to sharing all of the data. on a C: drive (the drive that contains the operating system).

Because if you do not divide your hard drive into many smaller partitions, your hard drive is of course just a single partition.

And when there is a Win error, or for some reason you can  not boot into Windows  , the risk of data loss is very high. Especially for those who are not knowledgeable about computer rescue.

However, it is an option for personal computers only. If you are managing one or more public computers, for example, dividing the hard drive is not enough.

So what's the solution ? Well, the answer is to block access to the hard drive on Windows 10 and perform  hard drive freezing  !

I. Instructions to block access to the computer hard drive

This article I guide on Windows 10, but you can apply to Windows 7, 8 and 8.1 too!

Blocking users from accessing the hard drive is a very useful way to protect and prevent others from viewing, deleting and editing data on any one drive, especially the partition where Windows 10 is  installed. .

Although you can choose to  hide the partitions on Windows  , they will somehow still be able to access the drives.

But with this method, once enabled, no User, except the User Administrator, can access the hard drives that you have blocked.

To do this on Windows operating systems, we have 2 options, one is to use the familiar Registry Editor and the second is the Local Group Policy Editor.

And as usual, I will share with you both ways for you to have more options to handle.

Method # 1: Use Local Group Policy Editor to block users from accessing the hard drive on Windows 10

This is a tool that allows you to customize a lot of things and interfere deeply into the Windows system.

However, this method only applies to Windows 10 Pro, Education, Enterprise Edition, and Windows 10 Home cannot, because some components including Local Group Policy Editor have been omitted from this version.

For those of you using Windows 10 Home, please use method # 2 below .

Perform:

+ Step 1: First,  open the Run dialog box  by pressing Windows + R => enter the command gpedit.msc => then press Enter to quickly access Local Group Policy Editor on Windows 10.

Alternatively, you can also run this command directly in the Taskbar search box (Windows + S) and it will also open the Local Group Policy Editor for you.

How to block access to a computer's hard drive on Windows 10 Picture 1How to block access to a computer's hard drive on Windows 10 Picture 1

+ Step 2: The Local Group Policy Editor window appears, navigate to the File Explorer folder in the following path, using the tree on the left:

User Configuration> Administrative Templates> Windows Components> File Explorer

+ Step 3: When you get here, scroll down and look in the list of policies to the right of a policy called Prevent access to drives from My Computer => click on it and then click on policy setting or you can also double click Click on this policy to enable functionality to block access to the drive.

How to block access to a computer's hard drive on Windows 10 Picture 2How to block access to a computer's hard drive on Windows 10 Picture 2

+ Step 4: In this window, switch the status from Not Configured to Enabled to enable the feature of blocking drive access on Windows 10 => Then you can click Apply to save and close this window. already.

How to block access to a computer's hard drive on Windows 10 Picture 3How to block access to a computer's hard drive on Windows 10 Picture 3

By default it will block access to all hard drive partitions on Windows 10 - Restrict all drives.

But if you just want to block an arbitrary drive like drive C: for example, don't immediately close the window above, but click on the line Restrict all drivers in the Pick one of the following combinations => select again to Restrict C drive only => then click OK to finish.

As for the options like Restrict A, B, D drive only, I still do not know which drive it blocks, you can try to comment on the results below the comments. Thank you in advance!

When done, you do not need to restart the computer but it will take effect, you can open File Explorer (Windows + E) up => and click on the blocked hard drive partition, you will receive the message. Inaccessible error due to restricted permissions by Administrator as shown below.

Regardless of whether you use any other file manager to replace File Explorer, you will see this message.

How to block access to a computer's hard drive on Windows 10 Picture 4How to block access to a computer's hard drive on Windows 10 Picture 4

Method # 2: Use Registry Editor to block users from accessing the drive on Windows 10

Although Registry Editor is very powerful, it can deeply interfere with the Windows system, but also contains a lot of risk of operating system error if you do it wrongly.

However, if you are using Windows 10 Home and want to block users from accessing the drive, you have no choice but to use this tool.

Therefore, you should  backup the entire Windows 10 Registry  before following the instructions in this article.

Yes. That is for you to carefully follow the instructions, but if you follow each step, step by step, it is very difficult to make mistakes.

Perform:

+ Step 1: You continue to open the Run dialog box (Windows + R) => enter the command regedit => then Enter to access Registry Editor on Windows 10.

Similarly, you can also run this command directly or search with the keyword regedit in Windows Search (Windows + S) to open Registry Editer like # 1 above.

How to block access to a computer's hard drive on Windows 10 Picture 5How to block access to a computer's hard drive on Windows 10 Picture 5

+ Step 2: Next, you access the Explorer folder key in the Registry under the path:

HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer

With Registry Editor you do not need to use the tree on the right, but you can directly paste this path in the address bar => then Enter is okay.

If you do not see the address bar as shown below, click on the word View and select the line Adress Bar to show again.

+ Step 3: By default, this Explorer folder has only one key, NoDriveTypeAutoRun => now right-click on any empty area of ​​the right pane => then select New => select DWORD (32-bit) Value to create a new key and then name it NoViewOnDrive to continue.

NOTE: If you do not have the right name or wrong name, you do not have to create a new key, just right click on the newly created key => and select Rename.

How to block access to a computer's hard drive on Windows 10 Picture 6How to block access to a computer's hard drive on Windows 10 Picture 6

+ Step 4: After creating the NoViewOnDrive key, right click on it => and choose Modify . or faster, double-click on this key to edit the value.

The Edit Value window appears, now edit the value in the Value data box from 0 to 4 if you just want to block C: drive or 0 to 3 if you want to block access to the entire existing hard drive partition, the values the rest remains => and press OK to save.

How to block access to a computer's hard drive on Windows 10 Picture 7How to block access to a computer's hard drive on Windows 10 Picture 7

Usually, when you're done editing the Registry, you'll need to restart your computer for the changes you made to take effect.

But this is not the case, these edits will take effect as soon as you press the OK button to save.

When you access the hard drive that you have blocked, you will receive the same message as when using the Local Group Policy Editor to block only.

II. Conclude

So I have just finished showing you how to block users from accessing any hard drive partition or block access to the entire hard drive.

This is really useful for you to protect the data on the drive, preventing bad guys from destroying.

Good luck !

4.1 ★ | 39 Vote