How To Prevent A Program From Running In Windows 7

Sometimes the system admin, or parent may not want a particular program from running on a computer (ie.torrents and other downloading programs) for obvious security reasons. This little guide will show you how to prevent a program from running, and will still apply even if the program is uninstalled and reinstalled.

1. First off go to your registry editor by pressing Winkey+R and typing in regedit

2. Then you want to navigate to

HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer

regedit How To Prevent A Program From Running In Windows 7

3. Next right click on the right handside pane and choose New->DWORD (32bit) Value and name it DisallowRun.

4. Once it’s created, double click on it and change its value to 1 and then hit Ok.

regedit2 How To Prevent A Program From Running In Windows 7

5. Now right click on Explorer and choose New->Key. Name the key DisallowRun aswell.

7 30 2010 4 20 14 PM How To Prevent A Program From Running In Windows 7

6. Then right click on the right handside pane and choose New->String Value

You can now enter any name you like, ie. Block Bittorrent and then double click on it and  in the value data field you want to insert the exe extension.

black How To Prevent A Program From Running In Windows 7(You can find the .exe extension by right clicking on the program and going to properties in all programs)

7. Finally restart your computer and next time you try to launch the disabled application you will get an error message like this.

error How To Prevent A Program From Running In Windows 7

To disable more than one program, you need to repeat steps 5,6 and 7 for each .exe you want to disable.

To re enable the program, simply delete the registry entry that you made in steps 5,6,7 and restart

Image Credits

Techrecipes

7 Comments left so far


Signup For Newsletter

Related Posts

, , , ,

7 Responses to How To Prevent A Program From Running In Windows 7

Send me updates when comments are left

  1. Jamie Olney August 14, 2010 at 11:11 am #

    urm just rename it from bittorrent to something different lol, seams too silly!

  2. Annabell August 17, 2010 at 8:39 am #

    This key is under HKCU???
    1. So you will disable the program only to yourself
    2. If you would use the correct HKCU, every user could change it immediately!
    ergo: makes no sense at all!

  3. GermanOne August 18, 2010 at 6:42 am #

    If you have to /want to block a program this way you have to know especially which program you want to block and in this case your “traget” might be a child or ‘a woman’. ;-) The point is: I dont think your ‘traget’ know how to get the ‘problem’ solved. ;)
    ps: Excuse me for my terrible english. >.<

  4. Gordon Casper August 19, 2010 at 1:04 pm #

    How To Prevent A Program From Running In Windows 7?Run a Windows XP instead. (joke)

  5. Caleta_ica August 27, 2010 at 6:28 pm #

    muy bueno gracias por el aporte a los que comentan sobre esta web les digo que se pongan en el lugar el webmaster de esta web que sube consejor que puede servir a un usuario y quieren mejor consejor sobre w7 ultimate o demas versones subanlo ustedes no critiquen a los que lo suben , antemano es buen aporte te doy 10 + grasias soy de peru un informatico adicto a la red caleta_ica@hotmail.com y correo para unas criticas constructivas sobre mi post

  6. Peter Watts December 3, 2011 at 7:38 pm #

    Is there a way from preventing Windows 7 from downloading or installing a specific programme from the web?

  7. Simon December 9, 2011 at 6:38 am #

    When I try to create the key I just get an error saying it is unable to rename the key.

Leave a Reply