logo

How to Restrict Users from Running Specific Windows Programs ?

There are many ways to restrict remote desktop users from running specific windows programs. Using paid third-party software or applications is the simplest way. Administrators can also achieve by using Windows  Group Policy or editing the registry.

Belows are 2 methods quoted from https://support.microsoft.com/en-us/kb/323525, using Administrative Templates in Group Policy and editing the Registry. Alternatively, you can use Software Restriction Policy or App Locker under Application Control Policy in Group Policy.


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.

Editing the Local Policy -

To restrict users from running specific Windows programs on a standalone Windows-based computer :

o Click Start, and then click Run.

o In the Open box, type gpedit.msc, and then click OK.

o Expand User Configuration, expand Administrative Templates, and then Expand System.

o In the right pane, double-click Don’t run specified Windows applications.

o Click Enabled, and then click Show.

o 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.

o Click OK, click OK, and then click OK. NOTE : If domain-level policy settings are defined, they may override this local policy setting.

o Quit Group Policy Object Editor.

o Restart the computer.


Editing the Group Policy in a Domain -

To edit a domain-wide policy to restrict users from running specific Windows programs:

o Click Start, point to Programs, point to Administrative Tools, and then click Active Directory Users and Computers.

o Right-click your domain, and then click Properties.

o Click the Group Policy tab.

o 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.

o Click Edit.

o Expand User Configuration, expand Administrative Templates, and then Expand System.

o In the right pane, double-click Don’t run specified Windows applications.

o Click Enabled, and then click Show.

o 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.

o Click OK, click OK, and then click OK.

o Quit Group Policy Object Editor, and then click OK. NOTE : Group Policy changes are not immediately enforced. For more information, see the Troubleshooting section.


Method2 : How to Restrict Users from Running Specific Windows Programs by Editing the Registry

Important 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 How to back up and restore the registry in Window.

To restrict users from running specific Windows programs by editing the registry, follow these steps :

o Click Start, and then click Run.

o In the Open box, type regedit, and then click OK.

o Create a DWORD value named DisallowRun. To do so:

o Locate and then click the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion \Policies\Explorer

o On the Edit menu, point to New, and then click DWORD Value.

o Type disallow run, and then press ENTER.

o Double-click the DisallowRun value that you created in the previous step.

o Type 1 in the Value data box, and then click OK.

o Create a new HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion \Policies\Explorer\DisallowRun subkey. To do so:

o Right-click the following registry key, point to New, and then click Key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion \Policies\Explorer

o Type disallowrun, and then press ENTER.

o 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 :

o Right-click the following registry key, point to New, and then click String Value :
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion \Policies\Explorer\DisallowRun

o Type 1, and then press ENTER.

o Double-click the 1 value that you created in the previous step.

o Type iexplore.exe in the Value data box, and then click OK.

o Quit Registry Editor, and then restart the computer.


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:

o Click Start, and then click Run.

o In the Open box, type cmd, and then click OK.

o Type secedit / refreshpolicyuser_policy /enforce, and then press ENTER.

o Type secedit / refreshpolicymachine_policy /enforce, and then press ENTER.

o Type exit, and then press ENTER to quit the command prompt.