How to block a program from running in Windows 7

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 Articles

Windows 7 parental control feature: A review

This article explains the Parent control feature of Windows 7 which allows to the login access to the computer for certain hours per day, blocking specific games or program for a specific user

Windows 7 Firewall features

This article explains Windows 7 firewall's new and enhanced features which gives more control on Firewall and includes multiple profiles for each connection type.

How to install Windows 7 Professional operating system in your home desktop or laptop

Are you looking for installation guide of Windows 7 Professional operating system. Windows 7 is an operating system created by Microsoft to be installed on computers and laptops. In this article, I have given detailed steps about how to install Windows 7 in your home PC. Read this article to know the details about installation guide of Windows 7 Professional operating system.

More articles: Windows 7 in windows 7 Windows Operating System


Guest Author: Bye16 Jul 2013

You have three conflicting sets of instructions in this article.

Guest Author: Peter02 Aug 2013

The program will run if someone rename it. Are there anyway to allow rename but prevent running?

Guest Author: Emad10 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: Anonymous21 Apr 2014

@Peter ; Hi there is portable freeware AskAdmin from , your answer is there

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