TechBuzzPro

How to Block a Program in Windows 10

· 4 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can block a program from running in Windows 10 by using the built-in Group Policy Editor or Windows Defender Firewall. These methods prevent specific applications from launching, enhancing security or enforcing usage policies. Before proceeding, ensure you have administrator access, as both methods require elevated privileges. This guide covers both approaches, with step-by-step instructions, common mistakes, and troubleshooting tips.

What You'll Need

  • A Windows 10 device with administrator access
  • The exact file name and location of the program you want to block
  • Optional: Network access if modifying firewall rules

Step-by-Step

  1. Press Windows + R to open the Run dialog. Type gpedit.msc and press Enter. If prompted by User Account Control, click Yes to open the Local Group Policy Editor.
  2. Navigate to Computer Configuration > Windows Settings > Security Settings > Software Restriction Policies. If this section does not exist, right-click Security Settings, select Create Software Restriction Policies, and confirm the warning. This creates a default policy.
  3. Right-click Additional Rules under Software Restriction Policies, then select New Path Rule.
  4. In the Path field, enter the full file path of the program you want to block (e.g., C:\Program Files\AppName\app.exe). Alternatively, click Browse to locate the file.
  5. Set the Security level to Disallowed. The Designated file types box can remain as default unless you want to block a specific extension.
  6. Click OK. The rule is now active. Attempting to run the program will result in an access denied error.
  7. Alternatively, to block via Windows Defender Firewall: Open Control Panel > System and Security > Windows Defender Firewall. Click Advanced settings on the left.
  8. In the Windows Defender Firewall with Advanced Security window, click Outbound Rules in the left pane, then New Rule in the right pane.
  9. Select Program and click Next. Choose This program path and browse to the executable file.
  10. Select Block the connection and click Next.
  11. Apply the rule to Domain, Private, and Public profiles as needed, then click Next.
  12. Give the rule a descriptive name (e.g., "Blocked App.exe Outbound") and click Finish.

Common Mistakes

  • Using the wrong file path: Ensure the path matches the actual location of the executable. Incorrect paths render the rule ineffective.
  • Forgetting administrator rights: Both Group Policy and Firewall require admin privileges. Standard user accounts cannot create or modify these rules.
  • Blocking only outbound traffic: The firewall method stops internet access but not local execution. Use Group Policy to fully prevent launching.
  • Not verifying the program name: Some apps have multiple executables (e.g., updater.exe). Block all relevant files to be effective.
  • Overlooking 32-bit vs 64-bit paths: Programs installed in Program Files (x86) have different paths. Confirm the correct directory.

Tips

  • Test the rule: After setup, try launching the program to confirm it’s blocked.
  • Use descriptive names: When creating firewall or policy rules, name them clearly for future reference.
  • Consider user impact: Blocking system-critical or dependency files may cause other programs to fail.
  • Combine methods: Use Group Policy to block execution and firewall to restrict network access for maximum control.
  • Backup policies: Export your Group Policy settings via File > Export in gpedit.msc to restore if needed.

Troubleshooting

If the program still runs after applying the rule, first verify the file path is correct and the executable hasn’t been moved. If using Group Policy, ensure the policy was applied by restarting the computer—some settings require a reboot. Run gpupdate /force in Command Prompt (as admin) to refresh policies immediately.

If the firewall rule isn’t blocking network access, check that the rule is enabled and applied to the correct network profile. Disable any third-party firewalls temporarily to test, as they may override Windows settings.

On Home editions of Windows 10, gpedit.msc is not available. In this case, use the registry or third-party tools, but only if you're experienced. Alternatively, use Windows Defender Application Control (WDAC) via PowerShell for advanced blocking, though this requires detailed scripting.

If the program launches from a different location (e.g., a portable version), repeat the process for each executable path. Also, check Task Manager to see if the app is running under a different name or as a service.

Frequently Asked Questions

Can I unblock a program later?

Yes. In Group Policy, go to Software Restriction Policies > Additional Rules, right-click the rule, and select Delete. For firewall rules, go to Outbound Rules, find the rule, and delete it.

Does this work on Windows 10 Home?

Group Policy Editor is not included in Home editions. Use registry edits or Windows Defender Firewall, which is available on all versions.

Will blocking a program affect other users?

Yes. Group Policy and firewall rules apply system-wide, affecting all user accounts on the device.

Can I block programs by file extension?

Yes, in Software Restriction Policies, create a path rule ending in *.exe or other extensions. Use cautiously, as this may block legitimate programs.

Why doesn’t the firewall stop the app from opening?

Firewall rules only control network traffic. To prevent launching, use Group Policy or third-party software restriction tools.

Is this method safe?

Yes, if applied correctly. Avoid blocking system files like svchost.exe or explorer.exe, which can destabilize Windows.