Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7 - Applications - Prevent Running Specified Programs



 

Applications - Prevent Running Specified Programs

How to Prevent Users from Running Specified Programs in Windows 7 and Vista
Published by Brink
04-25-2010
Default Applications - Prevent Running Specified Programs

How to Prevent Users from Running Specified Programs in Windows 7 and Vista

information   Information
This will show you how to prevent all users, or specific users and groups, on the computer from being able to run a list of disallowed program EXE files that you specify.

You must be logged in as an administrator to be able to do this tutorial.

warning   Warning
This will not prevent users from being able to run a program through the command prompt unless you also prevent cmd.exe from being able to run.


EXAMPLE: Message
NOTE: This is a message that all users will get when they try to run a EXE file on the list of disallowed programs that you specified.
Applications - Prevent Running Specified Programs-message.jpg



OPTION ONE

Through the Local Group Policy Editor
1. Open the all users, specific users or groups, or all users except administrators Local Group Policy Editor for how you want this policy applied.

2. In the left pane, click on to expand User Configuration, Administrative Templates, and System. (See screenshot below)
Applications - Prevent Running Specified Programs-gpedit-1.jpg
3. In the right pane, right click on Don't run specified Windows applications and click on Edit. (See screenshot above)

4. To Allow All Applications to Run (Default)
A) Select (dot) either Not Configured or Disabled. (see screenshot below)
Applications - Prevent Running Specified Programs-gpedit-2.jpg
B) Go to step 6.
5. To Prevent Specified Applications from Running
A) Select (dot) Enabled, then click on the Show button under Options. (see screenshot above)

B) Under Value, double click in a blank line and type in the name of the EXE file (ex: cmd.exe) with file extension that you want to prevent from running. (see screenshots below)



Tip   Tip
  • To change or remove a listed exe file name, you can just type over it.
  • To clear or reset the list of disallowed applications, you can select Not Configured (step 4) and click on Apply, then select Enabled again and click on Apply.
Applications - Prevent Running Specified Programs-gpedit-3a.jpgApplications - Prevent Running Specified Programs-gpedit-3b.jpg
C) Repeat step 5B until you have added any other EXE files (ex: CCleaner) you want on the list of disallowed applications as well. When finished, click on OK. (see screenshots above)
6. Click on OK. (see screenshot below step 4A)

7. Close the Local Group Policy Editor window.





OPTION TWO

Manually in Registry Editor

NOTE: This option affects all users on the computer.
1. Open the Start Menu, then type regedit in the search box and press enter.

2. If prompted by UAC, click on Yes.

3. In regedit, navigate to the location below. (see screenshot below)
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Applications - Prevent Running Specified Programs-reg1.jpg
4. To Prevent Specified Applications from Running
A) In the right pane of Explorer, right click on a empty space and click on New and DWORD (32-bit) Value. (see screenshot below)
Applications - Prevent Running Specified Programs-enable-1.jpg
B) Type in DisallowRun and press Enter. Right click on DisallowRun and click on Modify. (see screenshot below)
Applications - Prevent Running Specified Programs-enable-2.jpg
C) Type in 1 and click on OK. (see screenshot below)
Applications - Prevent Running Specified Programs-enable-3.jpg
D) In the left pane, right click on Explorer and click on New and Key. Type in DisallowRun and press Enter. (see screenshot below)
Applications - Prevent Running Specified Programs-enable-4.jpg
E) In the right pane of DisallowRun, right click on a empty space and click on New and String Value. (see screenshot below)
Applications - Prevent Running Specified Programs-enable-5.jpg
F) Type in the number (1 to ....) of the order that this EXE file will be in the list of disallowed applications and press Enter. Right click on this number and click on Modify. (see screenshot below)
NOTE: For example, you would type 1 if this is the first EXE in the list, 2 if it's the second, 3 for the third, etc........
Applications - Prevent Running Specified Programs-enable-6.jpgApplications - Prevent Running Specified Programs-enable-8.jpg
G) Type in the name of the EXE file (ex: cmd.exe) with file extension that you want to prevent from running and click on OK. (see screenshot below)
Applications - Prevent Running Specified Programs-enable-7.jpg
Tip   Tip
  • To change a listed EXE file name, right click on the number of the EXE, click on Modify (step 4F), type the new EXE name, and click on OK.
  • To remove a listed EXE file name, right click on the number of the EXE, then click on Delete and Yes.


H) Repeat steps 4F and 4G until you have added any other EXE files (ex: #2 CCleaner) you want on the list of disallowed applications as well.
Click image for larger version

Name:	Enable-8.jpg
Views:	92
Size:	138.7 KB
ID:	69286
I) When finished, go to step 6.
5. To Allow All Applications to Run (Default)
A) In the right pane of Explorer, right click on DisallowRun and click on Delete. (see screenshot below)
Applications - Prevent Running Specified Programs-disable-1.jpg
B) Click on Yes to approve. (see screenshot below)
Applications - Prevent Running Specified Programs-disable-2.jpg
C) In the left pane, right click on DisallowRun and click on Delete. (see screenshot below)
Applications - Prevent Running Specified Programs-enable-9.jpg
D) Click on Yes to approve. (see screenshot below)
Applications - Prevent Running Specified Programs-disable-4.jpg
6. Close regedit.

7. Log off and log on, or restart the computer to apply.
That's it,
Shawn




Published by
Administrator

Join Date: Oct 2008
Location: Texas
Posts: 34,826
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute

Tutorial Tools
Comment

Applications - Prevent Running Specified Programs problems?



Tutorial Tools



Similar Threads for: Applications - Prevent Running Specified Programs
Windows 7 Tutorial Category
Background process prevent to have full screen programs running General Discussion
Prevent users from running executables from usb sticks Customization
Close programs to prevent... Crashes and Debugging
Windows 7 Not Running Applications General Discussion
applications running problem Software


All times are GMT -5. The time now is 07:44 AM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30