There are plenty of good reasons to block applications in Windows – from making sure that your employees (or you) aren’t procrastinating in the workplace, to ensuring that your children can’t access things that you don’t want them accessing on their accounts. This tutorial shows several ways to block applications on Windows PC.
Good to know: alternatively, you can hide apps in Windows. Learn how to do that.
1. Via the Group Policy Editor
It’s possible to use the Local Group Policy Editor to block an unwanted program from running on your Windows PC. Follow these steps:
- Open Windows Search by tapping Win + S.
- Type “Edit group policy,” and click to launch the top result.
- Under the “User Configuration” section in the pane on the left, choose “Administrative Templates -> System.” Right-click on the “Don’t run specified Windows applications” option on the right.
- Select “Edit.”
- You need to “Enable” the setting first.
- Selecting the app is as easy as typing its .EXE file name in the “Show Contents” box. Click “OK.”
- Identify the file name by right-clicking its shortcut, selecting “Properties,” and copying it from the “Target” field.
- Once the app has been added, you’ll see a “Restriction” window whenever you try opening the app.
- To re-enable the app, delete its name from the “Don’t run specific Windows applications” setting in Group Policy Editor or disable the whole feature.
Tip: learn how to reset Group Policy settings, as it may come in handy someday.
2. Using the Registry
Windows users can use the Registry Editor to change how their devices work, and that includes the ability to block any app and prevent users from running it. Follow these instructions:
Note: before doing this, you should take precautions and create a backup of your registry.
- Press Win + R and enter
regedit
into the Run box to open the Registry Editor.
- Manually navigate to the following path, or copy and paste it into the Registry Editor top bar:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies
- In the pane on the left, right-click “Policies,” then select “New -> Key,” and name your new key “Explorer.”
- Select your newly created Explorer folder/key, then in the pane on the right, right-click an empty space and select “New -> DWORD (32-bit) Value,” and call it “DisallowRun” (without the quotes).
- Double-click “DisallowRun” and change its “Value data” to “1.”
- Right-click the Explorer folder you created in the pane on the left, select “New -> Key” and call it “DisallowRun.”
- Inside the new “DisallowRun” key, create a new value, which should be a “String Value.”
- After creating it, give it a name. You can use the name of the application you plan to restrict. After creating it, right-click it and choose “Edit.” In the “Value data” field, enter the app’s .EXE name.
Allow Only Specific Applications
The obverse option to what was outlined above is to only allow certain applications to be opened on the account or, put another way, to block everything apart from the applications that you specify. Follow the steps below:
- Go to “Explorer,” right-click any empty space, create a new DWORD (32-bit) value, and name it “RestrictRun.”
- Double-click RestrictRun and change its “Value Data” to “1” to activate it.
- Create a new folder that will contain the apps that will be allowed to run normally. Right-click the “Explorer” folder and select “Add -> Key.” You should name it “RestrictRun” as well. You can have both DisallowRun and RestrictRun at the same time, but don’t enable them simultaneously, as this may cause conflicts.
Note: it’s very important that the first application you add to the RestrictRun folder is “regedit.exe,” otherwise you will lock yourself out of the Registry Editor and will be unable to make future changes. (If this happens, you’ll need to edit this account’s registry from another administrator account.)
- Right-click any empty space and select “New -> String Value.”
- This string value will only let one app run, so you need to create one for every app you want to have access. You can rename it whatever you want, but it’s best to name it with something that will remind you of the app so that you can find it later.
- Double-click the string value and add the executable of the app you want to allow.
Tip: maintain your hard drive’s good health and performance by learning how to defrag the registry.
3. With Local Security Policy
You can use the Local Security Policy tool to instantly block specific apps from running on your PC.
- Launch Windows Search and type “Local Security Policy.”
- Double-click the “Software Restriction Policies” key.
- Right-click “Software Restriction Policies” in the left menu and select the “New Software Restriction Policies” option.
- A new key will appear with the name “Additional Rules.” Click on it to proceed.
- Right-click the “Additional Rules” key from the sidebar and select “New Hash Rule.”
- Click the “Browse” button and select all the .EXE files you don’t want users to launch. You can later proceed with the same steps to undo this.
Tip: if you’ve heard the term Windows Host File thrown around but are unsure what it does, we break it down for you.
4. Try a Third-Party Tool
You may use a third-party tool if you’re not an advanced user and want an easy-to-use method. For this tutorial, we’re using the Simple Run Blocker app, a portable freeware that allows you to block any app from being used by anyone on the computer.
- Download Simple Run Blocker on your PC.
- This is a portable app that does not require installation. Launch it by double-clicking it.
- To start blocking a specific app from running, click the “+” button at the top, then locate the .EXE file of the app you want to block.
- Once the app has been added, click the green button to save it.
- Now when you try opening the app you just blocked, you’ll see an error message.
- To remove the block, select the application again and click the “-” button to remove it from the list.
- You can also click the gear-shaped Settings icon and select the “Hide or lock drives” option. This allows you to protect specific drives, preventing other users from accessing them.
Frequently Asked Questions
Will the blocked/restricted apps send notifications?
No. When you block certain Windows apps from running, they will not be launchable, so they can’t show you notifications. You can still manage or disable notifications for apps that are not blocked or restricted.
How can I prevent others from installing new apps on Windows?
Open the Windows Settings app and navigate to “Apps -> Advanced App Settings -> Choose Where to Get Apps -> The Microsoft Store Only.” This will prevent you from installing .EXE files. The only drawback is that anyone who has access can disable this feature and proceed with the installation, but it should be enough to stop kids and users who aren’t technically inclined.
Can I prevent a specific user from opening a particular app on Windows?
Yes. If various users are using the same PC with several user accounts, you can, as an administrator, prevent a guest account from launching a particular .EXE file. First, locate the .EXE file, then right-click it and select “Properties.” Switch to the “Security” tab and click the “Edit” button. Select the user in question and disable the “Read & Execute” permission for them.
All screenshots and images by Mustafa Ashour.
Our latest tutorials delivered straight to your inbox