Windows 7: Prevent a Program from Running

   Posted by Lê Hoàng in Windows 7

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

When not creating exciting new Android games, Lê Hoàng is here crafting tutorials, tweaks, and fixes for your enjoyment.
View more articles by Lê Hoàng

The Conversation

Follow the reactions below and share your own thoughts.

  • Geetha

    Useful tip

  • trippman

    But if we wanted it to never run then wouldn’t we just uninstall it? Thanks though

    • Anonymous

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

      • trippman

        you’re right! Thanks

        • Anonymous

          You are welcome :) I’m here to help ;)