Vista Group Policy implements the hiding and restriction of the specified partition.

  
With the Group Policy Object Editor that comes with Windows Vista, it is convenient to hide and restrict the specified partition, and the operation is not complicated. However, this feature is not available in the home version.
Open the Run dialog box, manually enter "gpedit.msc" to enter the Group Policy Object Editor, select "User Configuration", and then navigate to "User Configuration → Administrative Templates → Windows Components → Windows Explorer" to start the group. After the strategy, we can follow the idea and hide and display the partition as we like.
Hide the specified partition
Double-click "Hide these specified partitions in My Computer" in the right pane, open the properties window and select "Enabled" (Figure 1), you can see that it is provided here. The 7 default options are used to restrict access to the partition. You can choose the actual situation. For example, select "Restrict partition C only". After confirming, you can hide partition C in the "Computer" and "Windows Explorer" windows. Icon, and the icon for the partition does not appear in the Open or Save As dialog.
Figure 1
Restricting the specified partition
The partition hidden by the above method is just a simple restriction method. We can still force the hidden by typing "c:\\" in the address bar. Partitioning, so you still need to continue to brainstorm.
Double-click "Prevent access to partition from "My Computer" in the right pane, select "Enabled", select "Restrict Partition C only" from here, and then restrict access to the C partition after confirmation. At this point, not only the restricted C partition is not visible in the "Computer" or "Windows Explorer" window, but an error message pops up even if it is forcibly accessed via the "Address Bar" (Figure 2).

Figure 2
add a combination of zoning restrictions
the above method, although simple to use, you can hide the most important of the C drive partition, but want to hide other partitions how to do it? For now massive hard drives In other words, if there are more partitions, for example, if you want to limit the E and F partitions, you may not be able to use the Group Policy Object Editor. However, we can make it support the hiding of other partitions by modifying the configuration file of Group Policy.
For Vista, the group policy file is stored in the "%windir%\\PolicyDefinitions\\" path, we need to care about the "WindowsExplorer.adml" and "WindowsExplorer.admx" two configuration files, please The files are copied out.
Modify the WindowsExplorer.adml file
Open the WindowsExplorer.adml file with Notepad and find the section containing the following code:
<stringTable> <string id="ABCDOnly">Restrict only partitions A, B , C and D</string> <string id="ABConly">Only restrict partitions A, B, and C</string> <string id="ABOnly">Only restrict partitions A and B</string> <string id="ALLDrives">Restrict all partitions</string>
In fact, the above code is the corresponding option in Group Policy. We can add new content here according to our needs, for example, need to hide E partition, add the following code, save and exit after the modification is completed:
<string id="EOnly">Restrict only partition E</string> Modify WindowsExplorer.admx file
Still use Notepad to open WindowsExplorer. The admx file finds "<enum id="NoDrivesDropdown" valueName="NoDrives" required="true">" and "<enum id="NoDrivesDropdown" valueName="NoVIEwOnDrive" requi Red="true">", the former is used to restrict access to the partition, the latter is used to hide the partition, for example, here is the E partition as an example, please add the following code in two places, here " 16" indicates the decimal code of the E partition:
</item> <item displayName="$(string.EOnly)"> <value> <decimal value="16" /> </Value>
Replace two important files
Due to access control permissions, we first need to modify the access permissions of the two files, open the properties dialog, switch to the "Security" tab, click "Advanced" After the button changes the owner, the related settings are made, and after the permission is obtained, the file replacement operation can be completed.
Now, we can reopen the "Hide these specified partition properties in my computer" dialog box, select "Enabled" (Figure 3), you can see that the restriction combination just added has appeared here. Is it very interesting?
Figure 3

Copyright © Windows knowledge All Rights Reserved