Restrict Users From Opening a Hard Disk Partition

If you work on a computer which is also shared with your family or friends then there are chances of losing your important data saved on the hard disk. So if you are looking for a way that can help you secure your data from getting deleted or moved then this simple Windows Group Policy trick can be a life saver.

1. Open Run (Windows Key + R) from Start Menu and type gpedit.msc and hit Enter.

open gruop policy editor

2. Now in the Local Group Policy editor window go to

User Configuration > Administrative Templates > Windows Components > Windows Explorer

3. Now in the right pane you will see a list of settings. Scroll down until you find the setting named “Prevent access to drives from My Computer“.

scroll down to the setting

4. Double click the setting to open the setting window. Now select Enabled. Now in the left pane you will find a drop-down where you can select the drive you want a restricted access. You can also choose to restrict all the drives. Now press Apply and then OK.

edit setting parameters

Now that you are done, double clicking the selected (restricted) drives will throw an error window as shown below.

error window

Next time you choose to revert back to the default state just follow the Steps 1-3 and in the Step 4 select Not Configured or Disabled.

NOTE: The restrictions are valid only for the same Windows account.

Email this article

Written by on Friday, September 3rd, 2010

  1. Reader Comments

  2. Tanmay

    Useful article. But you can also hide that partition if you do not want to make it publicly visible.

    September 4th, 2010
    • Soumen Halder

      @Tanmay that is true and in that case (in group policy editor) you have to use the setting “Hide these specified drives in My Computer”. Enabling this will hide any/all drives from My computer page but they will still be accessible if you open it using the address bar. In that case the contents of that drive will be completely accessible.

      September 4th, 2010
  3. udaykiran

    hey buddy nice content yaar still u got this stubbend with u just keep a mail ill catch u

    September 6th, 2010
    • Soumen Halder

      @Uday Thanks for the content but unfortunate can’t understand this part “u got this stubbend with u just keep a mail ill catch u“.

      September 6th, 2010

Add Your Comment

All Comments are Moderated.

YOUR COMMENT

About This Site

Ampercent is a technology blog on computer tutorials, software guides, how to tricks and web tools. The blog is updated daily and written by two computer science students from India. Read More »

Tip Us »

Have a great tip which you want to share with fellow readers? Send in your ideas to tips@ampercent.com