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.

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

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.

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

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.



Useful article. But you can also hide that partition if you do not want to make it publicly visible.
@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.
hey buddy nice content yaar still u got this stubbend with u just keep a mail ill catch u
@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“.