Select the product you need help with
How to Limit User Access to Local Computer or Hard Disks with Internet Explorer 4.01Article ID: 179221 - View products that this article applies to. This article was previously published under Q179221 On This PageSUMMARY
This article describes how to limit access to hard disks on computers
running Internet Explorer 4.01 Service Pack 1 (SP1) or Internet Explorer 5
with Microsoft Windows 95, Windows 95 Service Pack 1, Windows 95 OEM
Service Release version 1 or 2, Microsoft Windows NT 4.0, or running
Windows 98.
MORE INFORMATION
You can limit access to local hard disks without obtaining an updated
Internet Explorer file. Or, you can obtain an updated file that also
allows you to apply additional restrictions that are listed later in
this article.
How to Limit Local Access Without Additional FilesImportant This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in WindowsTo limit access to the local workstation, set the data value of the NoRun DWORD value to 0x1 in the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Setting this value disables viewing local files by typing a file address
or URL (for example, "file://c:\") in the Address box, and also disables
the Run command on the Start menu.
Setting this value also disables the ability to browse to the local file system using an embedded HTML link. For example, you cannot browse a file by clicking the HTML link provided by the <a href="file://c:\">My File System</a> tag when this registry setting is used. If you want to disable access to a drive altogether, set the data value of the NoDrives DWORD value as indicated: Drive DWORD value ------------------- A 0x1 B 0x2 C 0x4 D 0x8
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
NOTE: Internet Explorer checks both HKEY_LOCAL_MACHINE (HKLM) and HKEY_CURRENT_USER (HKCU) for restrictions. The browser first checks HKLM. If it finds the restriction there, it does not check HKCU for the restriction. Typically, you use HKCU for restrictions. The keys and values may already exist in HKCU for this purpose too. However, if you want to use HKLM, you can. You may need to create the appropriate keys and values to make this work. For example, on most computers, the following key exists:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
However, the following key does not exist:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Only the following key exists:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies
You need to add the Explorer key and then the approprate values to have the browser read them from this location rather than HKCU.
NOTE: All values are in hexadecimal. This logic uses a bitwise left shift to decide which drive to use. For example, if you want to disable viewing drive C, set the DWORD value to binary 0100. The code takes the return value from the function, subtracts "A" from the value, and shifts the binary value left by that number of bits. For example, drive C - drive A = 2. 0001 shifted to the left twice is 0100. Binary 0100 has the hexadecimal equivalent of 0x4. This is how you calculate the drive to disable. As another example, if you want to disable drive N, use the following method to calculate the hexadecimal value to place in the registry:
How to Limit Local Access with Additional Update FileObtain an updated Shdocvw.dll file by installing Internet Explorer 4.01 Service Pack 2. You can obtain Internet Explorer 4.01 Service Pack 2 from the following Microsoft Web site:http://www.microsoft.com/windows/ie/downloads/default.mspx
(http://www.microsoft.com/windows/ie/downloads/default.mspx)
The following tables list additional restrictions provided by this updated file. You must manually edit the registry of each computer using the updated Shdocvw.dll file and add the corresponding registry value and setting for each restriction. Note that these restrictions also apply when you are using Kiosk mode. Restrictions under HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions: Each DWORD value must be set to 1 to be enabled. To disable the restriction, set the value to 0.
Restriction Description
----------------------------------------------------------------------
NoFileOpen Disables Open command on File menu, CTRL+O, and
CTRL+L.
NoFileNew Disables CTRL+N
NoBrowserSaveAs Disables Save and Save As on the File menu.
NoBrowserOptions Disables Internet Options on the View menu
(disables changing browser settings).
NoFavorites No Favorites menu, adding to
favorites, or organizing favorites.
NoSelectDownloadDir Prevents user from being able to select
download folder by not displaying the
Save As dialog box when a file is downloaded.
NoBrowserContextMenu Disables HTML context menu.
NoBrowserClose Disable ALT+F4.
NoFindFiles Disables the F3 key.
NoTheaterMode Disables the F11 key.
The following additional restriction must be added in the following registry location:
HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\
Toolbars\Restrictions
Restriction Description --------------------------------------------------------------------- NoToolbarOptions Disables adding, removing, or moving toolbars. PropertiesArticle ID: 179221 - Last Review: January 22, 2007 - Revision: 3.4 APPLIES TO
| Article Translations
|



Back to the top








