Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

How to block apps from running in Windows

Posted on 14/03/202017/08/2026 Christian By Christian No Comments on How to block apps from running in Windows
  1. Home
  2. Windows
  3. How to block apps from running in Windows
block apps

Blocking apps from running in Windows can be a security and performance measure. In this guide, I will be demonstrating how to block certain apps from running on this computer. This can be achieved via the group policy and by tweaking the registry settings. Please see how to Block Upgrade to Windows 11 via Group Policy or Windows Registry, and how to Block downloads on Microsoft Edge using GPO on Windows Server 2019 and 2022.

Also, see the Video on Enabling or Disabling Screen Saver on Windows, the video on how to install Fax Server on a Windows Server, and the video on how to Prevent Windows Users from Changing the Screen Saver via the Registry Settings

Why should you block apps from running in Windows?

Below are one or more of these reasons why you might want to block some apps from running on your Windows PC.

Security Concerns: Blocking certain apps can prevent the execution of potentially malicious software or malware. This is particularly important for applications that are not trusted or are known to be associated with security risks.

Privacy Concerns: Due to Data Protection, some applications might collect and transmit user data without explicit consent. Blocking these apps can help protect user privacy by preventing unauthorized data gathering.

Network Bandwidth: Certain applications, especially those that run in the background, may consume network bandwidth for updates, data syncing, or other activities. Blocking unnecessary apps can help manage bandwidth and improve network performance.

Resource Utilization: Some apps, especially those configured to run at startup, can consume system resources (CPU, memory) even when not actively in use. Blocking unnecessary apps can improve system performance.

Corporate Policies: In a corporate environment, IT administrators might block certain apps to ensure that employees adhere to company policies. This can include restricting access to non-work-related apps during business hours.

Preventing Unwanted Behavior: Some applications may perform actions that are undesirable in a particular context. For example, blocking gaming apps on work computers to prevent distractions during work hours.

License Compliance: Blocking unauthorized or unlicensed software helps ensure compliance with software licensing agreements.

Reducing Attack Surface: Reducing the number of running applications reduces the attack surface, making it harder for attackers to exploit vulnerabilities in the system.

Block Apps via Windows Registry Settings

To do this via the registry and group policy. Launch the registry settings using “regedit.exe” from the search button and accept the UAC as shown below

prevent apps from running

This will open the Registry Editor. Navigate through the registry hive to the following key as shown below.

  • HKEY_CURRENT_USER
  • SOFTWARE
  • Microsoft
  • Windows
  • CurrentVersion
  • Policies
Windows app blocking

Next, create a new sub-key inside the Policies key. Right-click the Policies key, select New, and select Key,

Windows app blocking

Name the new key Explorer

block apps

Next, create a value inside the new Explorer key by right-clicking on the Explorer key and select New. Select DWORD (32-bit) value, and Name the new value DisallowRun

restrict app execution

Next, double-click the new “DisallowRun” value (This will open its properties window. Change the value from 0 to 1 in the “Value data” box

block apps

Finally, click on then click “OK.” Next, you will have to create a new sub-key in the Explorer key by performing the below.

Right-click on the Explorer key. Select New, select Key. Name the new key DisallowRun

prevent apps from running
Windows app blocking

In the next steps, we will start populating (adding) the apps we wish to block. Below are the steps to achieve this.

Create a new string value inside the DisallowRun key (You will do this for every application you desire to block).

Right-click on the DisallowRun value, select New, and select String-Value.

restrict app execution
restrict app execution

Enter the value to 1

Modify the value to 1 as shown below (we will have to start the numbering from 1 (one).

block apps

Now, double-click the new value to open its property windows.

Enter the name of the executable you want to block into the “Value data” as shown below. In my example, I will be blocking Internet Explorer from running.

prevent apps from running

When you hit “ok”, the string should look this way in the registry editor.

restrict app execution

This process should be repeated by naming each string alphabetically from value “2”, “3” and “4” etc., for each and editing the properties by adding the the executable file you wish to block. I only had to block the explorer in my lab and this is enough to work you through.

When you are done, ensure you restart your device to have the settings applied.

Note: If you do not restart, the settings will not be applied. When you try to launch Internet Explorer after restarting, you will get the following message below.

A Windows desktop displaying a pop-up error message titled 'Restrictions' indicating that an operation has been canceled due to restrictions in effect on the computer, with a prompt to contact the system administrator.

This can be achieved via Group policy as well. I will be testing with Notepad++ using group policy.

Block Apps Via Group Policy Object

To do this, launch “group policy as shown below,

Windows search bar displaying 'gpedit' along with suggested actions and results related to group policy editing.

In the Group Policy window navigate through the User Configuration > Administrative Templates > System.

Screenshot of the Local Group Policy Editor showing various user configuration settings under Administrative Templates, including options for system settings and applications.

Next, click on “Enabled”. Click on show as shown below

Screenshot of Group Policy settings for 'Don't run specified Windows applications,' highlighting the 'Show...' button for adding disallowed applications.

In the Show Contents dialog box, click on every line in the list and type the name of the executable you do not want users to run. Click on “OK.”

Configuration window showing the 'Don't run specified Windows applications' policy. Options displayed include 'Enabled', 'Disabled', and 'Not Configured'. The list of disallowed applications includes 'notepad++.exe'.

The settings will display enabled as shown below.

Screenshot of the Local Group Policy Editor showing the User Configuration settings, specifically highlighting the 'Don't run specified Windows applications' option marked as enabled.

Apply Group Policy Update

To ensure the settings apply immediately, run “gpupdate” via the command prompt as shown below.

Command Prompt window displaying successful completion of group policy updates on a Windows operating system.

For the difference between GPUpdate and GPUpdate/force. See the following guide on how to permit only a specific app to run

Now when you try to launch Notepad++, the following restriction message will be prompted as shown below.

A Windows error message box stating 'This operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator.' displayed on a blue desktop background.

Note, that the registry and group policy steps for blocking and apps are also similar to permitting only specific apps to run in Windows.

I hope you found this blogpost on how to block apps from running in windows useful. Please feel free to leave a comment below.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
Windows

Post navigation

Previous Post: What to note when settings up Ansible to work with Kerberos
Next Post: How to permit and run only certain apps in windows

Related Posts

  • Screenshot 2020 12 30 at 01.03.14
    Device cannot use a Trusted Platform Module: Allow BitLocker without a compatible TPM Windows
  • microsoft edge
    How to configure static page in Microsoft Edge browser via Local Group Policy on Windows Windows
  • Featured image Microsoft diagnostic feedback disabled
    Prevent your PC from sending Diagnostics Feedback off via Windows Settings and Group Policy Windows
  • Feature image LSA
    How to configure additional LSA Protection Security | Vulnerability Scans and Assessment
  • Featured image 1
    Transfer Windows License from one PC to the other on Windows Windows
  • Slide1 1
    How to manage Microsoft Defender Antivirus using Group Policy and Command Line Utility Anti-Virus Solution

More Related Articles

Screenshot 2020 12 30 at 01.03.14 Device cannot use a Trusted Platform Module: Allow BitLocker without a compatible TPM Windows
microsoft edge How to configure static page in Microsoft Edge browser via Local Group Policy on Windows Windows
Featured image Microsoft diagnostic feedback disabled Prevent your PC from sending Diagnostics Feedback off via Windows Settings and Group Policy Windows
Feature image LSA How to configure additional LSA Protection Security | Vulnerability Scans and Assessment
Featured image 1 Transfer Windows License from one PC to the other on Windows Windows
Slide1 1 How to manage Microsoft Defender Antivirus using Group Policy and Command Line Utility Anti-Virus Solution

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

veeaam100

Veeam Vanguard

  • Screenshot 2022 04 02 at 23.05.24
    How to apply Windows Updates with PowerShell Windows
  • Domain
    Connectivity to a writable domain controller from a node could not be determined because of an error Virtualization
  • schedulepythontasksinWindows
    Task Scheduler shows task still running despite successful Windows
  • Copy and Paste Between HyperV VMs and host
    Copy and Paste between your device to a VM running in Hyper-V Windows
  • screenshot 2020 02 08 at 20.02.50
    Windows 10 Administrative Shortcut command key Windows Server
  • Disable Hardware Acceleration in Browsers and Windows
    How to Disable Hardware Acceleration in Browsers and Windows Windows
  • Grammarly integration with Word on Mac
    Integrate Grammarly in Microsoft Word on Mac Network | Monitoring
  • screenshot 2020 03 26 at 22.14.14
    How to create a scheduled task with Windows Admin Center Windows Server

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,752 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.