Microsoft KB Archive/323525

= HOW TO: Restrict Users from Running Specific Windows Programs in Windows 2000 =

Article ID: 323525

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition

-



This article was previously published under Q323525



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

IN THIS TASK
SUMMARY Method 1: How to Restrict Users from Running Specific Windows Programs by Using Group Policy
 * Edit the Local Policy on a Windows 2000-Based Computer
 * Edit the Group Policy in a Domain

Method 2: How to Restrict Users from Running Specific Windows Programs by Editing the Registry Troubleshooting REFERENCES



SUMMARY
This step-by-step article describes two methods that you can use to restrict users from running specific Windows programs on a Windows 2000-based computer. You can restrict users from running specific programs by either using Group Policy or editing the Windows registry.

back to the top

Method 1: How to Restrict Users from Running Specific Windows Programs by Using Group Policy
To use Group Policy Object Editor to restrict users from running specific Windows programs, use the procedure that is described in the section that is appropriate to your situation.

back to the top

Editing the Local Policy on a Windows 2000-Based Computer
To restrict users from running specific Windows programs on a standalone Windows 2000-based computer:
 * 1) Click Start, and then click Run.
 * 2) In the Open box, type gpedit.msc, and then click OK.
 * 3) Expand User Configuration, expand Administrative Templates, and then expand System.
 * 4) In the right pane, double-click Don't run specified Windows applications.
 * 5) Click Enabled, and then click Show.
 * 6) Click Add, and then type the executable file name of the program that you want to restrict users from running. For example, type iexplore.exe.
 * 7) Click OK, click OK, and then click OK.

NOTE: If domain-level policy settings are defined, they may override this local policy setting.
 * 1) Quit Group Policy Object Editor.
 * 2) Restart the computer.

back to the top

Editing the Group Policy in a Domain
To edit a domain-wide policy to restrict users from running specific Windows programs:
 * 1) Click Start, point to Programs, point to Administrative Tools, and then click Active Directory Users and Computers.
 * 2) Right-click your domain, and then click Properties.
 * 3) Click the Group Policy tab.
 * 4) In the Group Policy Object Links box, click the group policy to which you want to apply this setting. For example, click Default Domain Policy.
 * 5) Click Edit.
 * 6) Expand User Configuration, expand Administrative Templates, and then expand System.
 * 7) In the right pane, double-click Don't run specified Windows applications.
 * 8) Click Enabled, and then click Show.
 * 9) Click Add, and then type the executable file name of the program that you want to restrict users from running. For example, type iexplore.exe.
 * 10) Click OK, click OK, and then click OK.
 * 11) Quit Group Policy Object Editor, and then click OK.

NOTE: Group Policy changes are not immediately enforced. For more information, see the Troubleshooting section.

back to the top

Method 2: How to Restrict Users from Running Specific Windows Programs by Editing the Registry
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To restrict users from running specific Windows programs by editing the registry, follow these steps:  Click Start, and then click Run. In the Open box, type regedit, and then click OK. Create a DWORD value named DisallowRun. To do so:  Locate and then click the following registry key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion \Policies\Explorer

 On the Edit menu, point to New, and then click DWORD Value. Type disallowrun, and then press ENTER. Double-click the DisallowRun value that you created in the previous step.</li> Type 1 in the Value data box, and then click OK.</li></ol> </li> Create a new HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion \Policies\Explorer\DisallowRun subkey. To do so: <ol style="list-style-type: lower-alpha;"> Right-click the following registry key, point to New, and then click Key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion \Policies\Explorer

</li> Type disallowrun, and then press ENTER.</li></ol> </li> For each program that you want to prevent users from running, create a new string value in the DisallowRun subkey that you created in step 4. Use consecutive numbers to name the string values (starting with 1), and use the executable file name for the program as the data for the string value.

For example, if you want to restrict users from running Microsoft Internet Explorer: <ol style="list-style-type: lower-alpha;"> Right-click the following registry key, point to New, and then click String Value:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion \Policies\Explorer\DisallowRun

</li> Type 1, and then press ENTER.</li> Double-click the 1 value that you created in the previous step.</li> Type iexplore.exe in the Value data box, and then click OK.</li></ol> </li> Quit Registry Editor, and then restart the computer.</li></ol>

back to the top

Troubleshooting
Group Policy background processing can take up to 5 minutes to be refreshed on domain controllers and up to 120 minutes to be refreshed on client computers. To force background processing of Group Policy settings, use the Secedit.exe tool:
 * 1) Click Start, and then click Run.
 * 2) In the Open box, type cmd, and then click OK.
 * 3) Type secedit /refreshpolicy user_policy /enforce, and then press ENTER.
 * 4) Type secedit /refreshpolicy machine_policy /enforce, and then press ENTER.
 * 5) Type exit, and then press ENTER to quit the command prompt.

back to the top

<div class="references_section">