Prevent Access To Hard Disk Partitions In Windows

by Abhishek Bhatnagar on March 18, 2010


Many a times our PC is used on shared basis, for example a computer at a College used by many students. Sometimes in a large family, a home computer is used by many family member.

If you are worried about your important data saved in your hard disk, and want to prevent users on your computer to access it from My Computer Window, then this is the right article for you.


In this article, I will tell you a simple and easy to follow policy settings in Windows that prevents access to hard disk partitions from My Computer / Computer in Windows Explorer.

This tutorial works with up to latest Windows 7 version as I have tested it on my Windows 7 Desktop computer.

Just follow these simple steps to Restrict Access To Hard Disk Partitions in Windows:

1. Press Windows + R key, in the Run Window, type “gpedit.msc” and press enter. This will lauch local group policy editor window.


2. On Local Group Policy Editor in Windows, navigate to the following path on the left hand side pane of the window.

User Configuration > Administrative Templates > Windows Components > Windows Explorer



3. Now Double Click on the setting “Prevent access to drives from My Computer”. This will open a setting window. On this setting Window, click Enabled and select the drives for which you want to restrict the access. The simply Click OK to save the setting.


That is it, you will now see an error when you try to access a hard disk partition  on a drive in My computer. The error message will tell you “The operation has been cancelled due to restrictions in effect from this computer. Please contact you system administrator


So next time you see this Restriction Window, you know that Windows Explorer has been restricted. To remove this restriction, just follow the same steps again and in step 3, select the option “Not Configured” instead of “Enabled”.

If you like this article or this article helped you, you can +1 to recommend this article on google plus.

You can follow us on Twitter or join our Facebook Fan Page. If you have a question to ask us, submit your question at Answers By Trouble Fixers.

Looking for something else? Search here :

{ 3 comments… read them below or add one }

Dhiraj Dhakal May 7, 2010 at 7:56 am

thank u, it helped me a lot….By this i could able to prevent my important documents from spy’s access……….

Katelynn May 17, 2010 at 10:29 pm

I have XPHome. I want to detect ANY and ALL HD access from the internet AND be able to detect where the intrusion is trying to access. Thanks!

noah July 1, 2010 at 3:04 am

So, can’t a virus just execute those same commands to disable the protection?

Leave a Comment

Previous post:

Next post:

© TroubleFixers – All about fixing computer troubles2007-2016 . All Rights Reserved.