Resources » Software » Operating Systems » Microsoft Windows

How to block a program from running in Windows 7

Updated: Category: Microsoft Windows
Author: Member Level: GoldPoints: 11

This article explains how to block a program or software from executing in Windows 7 by creating Windows registry key to block the program using Windows registry

How to block a program from running in Windows 7

Windows operating system is flexible enough to set the permissions and blocking the program or software from running in Windows 7. Administrator may want to block certain programs or software that may harm the computer in a network environment.

Blocking a software or program in Windows 7 requires no 3rd party software. Certain software like a torrent files which may download a virus or spyware or some unwanted program to the computer. If the computer is in an organization
network then it may spread across the entire network.

Windows 7 will block the program for even the reinstallation of the application. In order to block the program you require administrator permission. To block the program from running you need to modify the settings in Windows Registry.

Open the Windows Registry by pressing Windows key + R to open the Run prompt and then type Regedit and hit the enter key. Once the Windows registry is opened then navigate to the below path by expanding HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer and select Explorer and right click the mouse on the right hand side of the window and create a new DWORD and name it is as DisallowRun, double click the DWORD and enter 1 as its value.

Now select Explorer key and right click on the Explorer and click New, select Key to create a new key inside Explorer and name the key as same as the executable name so that it can be identified easily.

Registry Edit

Once the Key is created inside the Explorer, click the new key and go inside the key and right click on the right side of the Window, select new String and name it as "Block Snagit" and value as snagit32.exe to block the snagit32.exe from running in system. For testing purpose I used snagit32.exe you can block any executable.

Regedit key blocking

Close the Regedit, other applications in the system then restart the system and execute the snagit32.exe it will pop up a message this operation has been cancelled due to restrictions in effect on this computer. Please contact your administrator (Check the below screenshot).

How to prevent running program

Related Resources:

Read related articles: Windows 7   Windows Operating System   

Did you like this resource? Share it with your friends and show your love!

Responses to "How to block a program from running in Windows 7"
Guest Author: Bye   16 Jul 2013
You have three conflicting sets of instructions in this article.

Guest Author: Peter   02 Aug 2013
The program will run if someone rename it. Are there anyway to allow rename but prevent running?

Guest Author: Emad   10 Mar 2014
Well , I tried to do that but seems that something is wrong when i get to "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies".
Its empty , I cant find "Explorer or System" that exists at the 1st screen .
I though about creating Explorer key inside Policies then continue and I've tried it on SubWay_Surfers.exe it didn't work.

Help me please I really must permanently block QQ Messenger from running or connecting on my pc , tried the firewall thing but it works again if some one changed installation path to any other place on the pc.

Guest Author: Anonymous   21 Apr 2014
@Peter ; Hi there is portable freeware AskAdmin from , your answer is there


Post Comment:

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)

    Type the numbers and letters shown on the left.

    Submit Article     Return to Article Index
    Active Members
    TodayLast 7 Daysmore...