Restrict user access to a particular partition in Windows 7

Download PDF

You can easily restrict user access to any particular partition (or drive) in Windows 7 using either Registry or Group Policy Editor by following this tutorial.

We can use two methods; either by using Windows Group Policy Editor to restrict user access to a particular partition (or drive) or by using the Registry Editor to restrict user access to a particular partition. The first method is easy, but Group Policy Editor is not available in Windows 7 Home Premium or below; so the users using Home Premium or below, will have to follow the Registry trick to restrict user access to a particular partition.

 

Using Windows Group Policy Editor to restrict user access to a particular partition

 

Click the Start button, type gpedit.msc in the search box of the Start Menu and hit Enter from keyboard:

 

Using Windows Group Policy Editor to restrict user access to a particular partition

 

In the left hand pane, navigate to User Configuration > Administrative Templates > Windows Components > Windows Explorer.
Then on the right hand pane, double click on the option saying Prevent access to drives from My Computer:

 

Restrict user access to a particular partition

 

In the Window that pop ups after double clicking; select the option Enable then under Options from the drop down menu.
You can restrict a certain drive to restrict user access or restrict all :

 

Restrict user access to a particular partition BOLD

Click Apply and OK. Close Group Policy Editor. This is how we can restrict user access to a particular partition in Windows 7 using Gpedit.msc

 

Using Windows Registry to restrict user access to a particular partition

 

Click the Start Orb. Type Regedit and hit Enter from keyboard. Windows Registry Editor will open; Navigate to:

 

HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

 

Right Click on the right handed pane and create a New 32 bit DWORD value named NoViewOnDrive and double click it,  add these decimal numbers to hide the drive(s):

A: 1, B: 2, C: 4, D: 8, E: 16, F: 32, G: 64, H: 128, I: 256, J: 512, K: 1024, L: 2048, M: 4096, N: 8192, O: 16384, P: 32768, Q: 65536, R: 131072, S: 262144, T: 524288, U: 1048576, V: 2097152, W: 4194304, X: 8388608, Y: 16777216, Z: 33554432, ALL: 67108863

 

(Thanks to PCTools for providing the last values)

This how can use Registry Editor to restrict user access to any drive.

 

Signature

Searched Terms:

how restrict access to partition windows 7, script gpedit uses, how to restrict access to disk for user, how to restrict access to a partition\, how to lock a partition to a guest account, how to hide the computer drive for guest user, how to hide drives in guest account ?, how to disable another user to access my drive partition in windows 7, how to block user to access drive, disallow windows 7 user partitions
0saves

Here’s what we’ve got for you which might like :

Also, we have YouTube Videos and Apple iTunes Podcast Channel (the link will open iTunes App on Mac).

Additionally, performing a search on this website can help you.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Google+ or Twitter to join the conversation right now!

If you want to Advertise on our Article or want Business Partnership, you are invited to Contact us.

Contact Us

Comments

  1. Dimitris says

    Hello. At the Group Policy editor there are the A,B,C and D letters which are referring to drives. Can you give us a little more insight on this? Why there are only 4 letters? In my configuration there are more drives/partitions like G,E, H, J. What about those? If I want to restrict access on these partitions I should use the registry option?

  2. says

    You said the right! I have not noticed it. Also forget about A and B, so actually 2. Logically it should show all the partitions.

    Unfortunately, I could not gather more info on this to solve (if it can be solved at all).

    No way other than Registry Editor then.

  3. lorney says

    I deduct that very few, if any, of these great tweaks will function under W7 64-bit due to the different Registry configuration?

  4. says

    We have mentioned where there is / are any change (s) needed for 32 bit and 64 bit Windows 7.

    Most of the tweaks (if not mentioned) will work on both 32 bit and 64 bit Windows 7 operating system.

    Let us know if you have any specific problem.

  5. ?lub says

    I’m gone to convey my little brother, that he should also go to see this webpage on regular basis to obtain updated from hottest gossip.