Hiding Drive Letters from New Users

I want to configure some systems so that certain drive letters are hidden from view. For example, I want to hide drives A, B, and C from the standard user. Is this possible?

You can use three methods to hide drives and all involve editing the registry—make sure you back up your registry before attempting any of these approaches. The first method is to add the NoDrive entry of type REG_DWORD to the registry. Open a registry editor, then navigate to the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer registry subkey. From the Edit menu, select New, DWORD Value, then type the name NoDrive. The values for this data type range from 0x0 (the default setting), which disables the value and displays all drives, to 0x3FFFFFF, which hides all system drives (i.e., A through Z). Other values include

  • 0x3—hides drives A and B
  • 0x4—hides drive C
  • 0x7—hides drives A, B, and C
  • 0x8—hides drive D
  • 0xF—hides drives A, B, C, and D

Be aware that this option simply hides the drive icons in My Computer and Windows Explorer—users can still use a command window to display the drives' contents.

The second method is to add the NoViewOnDrive entry of type REG_DWORD to the same registry location as in the first method (i.e., the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer registry subkey). This entry uses the same registry values as the NoDrive entry. However, unlike the NoDrive entry, the user can see the drive letters in My Computer but clicking a drive letter results in a message that states the drive can't be accessed at that time. Be aware that users can still use Windows NT 4.0 File Manager to see what information resides on the drives.

The third method restricts users from mapping network drives on their computer. You navigate to the same registry location as in the other two methods and add the NoNetConnectDisconnect entry of type REG_DWORD. Set this registry entry to 0 to disable or 1 to enable the setting. A value of 1 removes the Map Network Drive and Disconnect Network Drive commands from the Tools menu in Windows Explorer and My Network Places and from the menus that appear when you right-click the Windows Explorer or My Network Places icons. A 1 value also removes the Add Network Place command from My Network Places.

The above three methods are the only ones I use to hide drives. More experienced users who are familiar with earlier Windows versions will have no problem bypassing the commands. However, these methods are still useful for hiding drives from users who might not be as familiar with command windows and command-line syntax.

Discuss this Article 2

federico Ovares (not verified)
on May 5, 2004
Just a quick note, the problem with methods 1 & 2 is that changing these values affects EVERYONE logging into a particular pc/server so admins suffer from the same restriction as do common users. The third method would seem to work around the problem faced in the previous methods of locking out the admins, but is quite unpractical if you have a considerable amount of users, as would be likely in a Terminal Services/MetaFrame enviroment. BTW, group policy offers this functionality but suffers from the disadvantage of locking users out of the harddrives no matter where they login I.E. terminal session/Desktop PC/Notebook, which might also be undesirable to lock someone out of their destop PC or worse, out of their notebook's HD when on the road just because you want to avoid browsing of a server's HD when connected to an application running on TS. Regards

Please or Register to post comments.

IT/Dev Connections

Las Vegas
September 30th - October 4th

Paul ThurottYou'll have the opportunity to experience:
• The Microsoft
Technology Roadmap
• Office 365 Implementation
• Hyper-V Optimizing
• Windows 8 Deployment
and much more!

Come See Paul Thurrott & Rod Trent in Person!

Early Registration Now Open

Upcoming Training

Mastering System Center 2012

During over 6 hours of training you can join John Savill from your computer as he will walk you through the key components and capabilities of System Center 2012, what’s involved in using the components, and the benefit they can bring to your environment.

Register Now

Current Issue

May 2013 - The NameTranslate object is useful when you need to translate Active Directory object names between different formats, but it's awkward to use from PowerShell. Here's a PowerShell script that eliminates the awkwardness.

CURRENT ISSUE / ARCHIVE / SUBSCRIBE

Windows Forums

Get answers to questions, share tips, and engage with the Windows Community in our Forums.