Microsoft KB Archive/242092

= How to: Use System Policies to Hide Specific Drives =

Article ID: 242092

Article Last Modified on 11/1/2006

-

APPLIES TO


 * Microsoft Windows NT Workstation 4.0 Developer Edition

-



This article was previously published under Q242092



SUMMARY
This article describes how a system administrator can restrict use of drives by 'hiding' one or more drives on a Windows NT-based computer. The System Policy Editor in Microsoft Windows NT Server 4.0 has an Hide drives in My Computer feature that hides all drives from the user. However, you may want to hide only selected drives, while retaining use of other drives.



MORE INFORMATION
To use system policies to hide drives, follow these steps:

  Obtain the decimal value for the drives you want to restrict.

NOTE: The registry key that this policy affects uses a decimal number that corresponds to a 26-bit binary string, with each bit representing a drive letter:  11111111111111111111111111 ZYXWVUTSRQPONMLKJIHGFEDCBA This configuration corresponds to 67108863 (in decimal) and hides all drives. If you want to hide drive C, you would make the third lowest bit 0 and then convert the binary string to decimal. The following are sample values that correspond to various drive letters:

Hide all drive letters (default): 67108863

Hide all drive letters but C: 67108859

Hide all drive letters but U: 66060287

Hide all drive letters but C: and U: 66060283

Hide all drive letters but C,O, and U: 66043899

 Edit the Common.adm file:  Open the Common.adm file in a text editor such as Notepad.  Locate the HideDrives section in the Common.adm file. Note that it should look like the following: CATEGORY !!Shell CATEGORY !!Restrictions POLICY !!HideDrives VALUENAME NoDrives VALUEON NUMERIC 67108863 ; low 26 bits on (1 bit per drive) END POLICY  Replace the VALUEON NUMERIC value with your new value. Save and then close the file.</li></ol> </li> Edit the system policy: <ol style="list-style-type: lower-alpha;"> Click Start, point to Programs, point to Administrative Tools (Common), and then click System Policy Editor.</li> On the File menu, click Open Registry.</li> Double-click the Local User policy.</li> Open the policy to the following location:

Local User\Shell\Restrictions

</li> Click to select the Hide drives in My Computer check box, and then click OK.

NOTE: Only the drives that you specified in the VALUEON NUMERIC value in the Common.adm file are hidden.</li> On the File menu, click Save.</li></ol> </li> Log off and then log on to the computer for the changes to take effect.</li></ol>

You can also use the Microsoft Zero Administration Kit (ZAK) for Windows NT Server 4.0 to selectively hide files. However, the ZAK method requires modifying the Zakwinnt.adm file to add other drive letter options beyond the five built-in selections. The ZAK method can be implemented using only a Windows NT Server-based computer and the original policy template files (Common.adm and Winnt.adm).

Additional query words: policy

Keywords: kbhowto kbinfo KB242092

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.