Windows 7: Prevent a Program from Running
This tutorial will demonstrate how to block a user from running a particular program on a windows 7 system.
1. Press Winkey+R to fire up the Run box.
2. Type in regedit and hit OK.
3. Go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
4. Right-click on the right pane and choose New->DWORD (32bit) Value. Name the new value DisallowRun.
5. Double click on it and change its value to 1. Hit OK to close the box.
6. Righ-click on Explorer and choose New->Key. Name the new key DisallowRun too!
7. Right-click on the right pane and choose New->String Value
8. You can name the new value anything you like ( for example: test, program 1, program 2…).
9. Double click on it and type the name of the programs that you want to disable. ( You must include the exe extension. For example: vlc.exe)
10. Restart the computer to take effect. When you lauch the disabled program, you will get something like this:
11. To renable the program, simply delete that string value and restart the computer to take effect.
Notes: Each string value allows you to disable one program. You can repeat step 7, 8 and 9 to disable more programs.
Make sure you provide the correct program’s exe name or it won’t work. You can find the right exe’s name by right-clicking on its shortcut, choose Properties and look at the Target line.
About Lê Hoàng
View more articles by Lê Hoàng
The Conversation
Follow the reactions below and share your own thoughts.








August 04, 2010 at 10:47 am, Geetha said:
Useful tip
August 08, 2010 at 1:48 am, trippman said:
But if we wanted it to never run then wouldn’t we just uninstall it? Thanks though
August 08, 2010 at 1:13 pm, Anonymous said:
I think it will be useful when your computer has multiple accounts
When you try to uninstall the program, they can reinstall it
But when you use this method, they can’t run it
August 08, 2010 at 2:56 pm, trippman said:
you’re right! Thanks
August 09, 2010 at 2:26 am, Anonymous said:
You are welcome
I’m here to help