Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.
How to Prevent Users from Running Specified Programs in Windows
This tutorial will show you how to prevent all or specific users on the computer from being able to run a list of disallowed program EXE files you specify in Vista, Windows 7, or Windows 8.
You must be logged in as an administrator to be able to do the steps in this tutorial.
This will not prevent users from being able to run a program through the command prompt unless you also add cmd.exe to the list of disallowed applications.
Even if you have an .exe file of a program in the list of allowed applications and also in the list of disallowed applications, then users will not be able to run the .exe. Anything disallowed will always override anything allowed.
Renaming an .exe file will bypass the list of disallowed programs to let it run anyways, but not with the list of allowed programs. If the .exe file name is not on the list of allowed programs, then it can't run.
This does not apply to "Metro" Store apps in Windows 8.
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.
A) In the right pane of Explorer, right click or press and hold on a empty space, and click/tap on New and DWORD (32-bit) Value. (see screenshot below)
B) Type in DisallowRun and press Enter. Double click/tap on DisallowRun to modify it. (see screenshot below)
C) Type in 1 and click/tap on OK. (see screenshot below)
D) In the left pane, right click or press and hold on Explorer, click/tap on New and Key, type in DisallowRun, and press Enter. (see screenshot below)
E) In the right pane of DisallowRun, right click or press and hold on a empty space, and click/tap on New and String Value. (see screenshot below)
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. Double click/tap on this number to modify it. (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........
G) Type in the name of the EXE file (ex: cmd.exe) with file extension that you want to prevent from running, and click/tap on OK. (see screenshot below)
To change a listed EXE file name, double click/tap on the number of the EXE to modify it (step 4F), type the new EXE name, and click/tap on OK.
To remove a listed EXE file name, right click on the number of the EXE, then click/tap 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.
I) When finished, go to step 6 below.
5. To Allow All Applications to Run NOTE:This is the default setting.
A) In the right pane of Explorer, right click on DisallowRun and click/tap on Delete. (see screenshot below)
B) Click/tap on Yes to approve. (see screenshot below)
C) In the left pane, right click or press and hold on DisallowRun, and click/tap on Delete. (see screenshot below)
D) Click/tap on Yes to approve, go to step 6 below. (see screenshot below)
Hi, my application goal that i would like to disallow it but in the second option don't worked for me, in the option 2 i tested and checked it in either win 7 and 8 but don't work correctly ! please help me if some thing is needed after that , thank you
i did all of the steps in the picture above that you posted. and after doing all of these the application are opening again and dont stopped ever. i attached some pictures here maybe you understand my says !
thank you admin after i restarted my pc this option worked as well ,
i don't want the error be appear when i clicked on the icon, can be without any errors and opening without windows ? (Nothing happen after clicking)