Windows Security blocks programs it doesn't recognize, and you can tell it to allow one

When Windows Security stops a program from running, it's usually because the program is new to your computer or came from the internet. You can override this block by adding the program to Windows Security's exceptions list. The program will then run normally without triggering the security warning each time.

This is different from disabling Windows Security entirely — you're just telling it to trust one specific program. Windows Security stays on and continues protecting you from other threats.

Key Takeaways

  • Windows Security blocks unrecognized programs to protect your computer, but you can allow specific ones through the Virus & threat protection settings.
  • The fastest method is to click "Manage settings" in the security warning itself, then add the program to the exceptions list.
  • If you don't see a warning, you can manually add the program through Windows Security by navigating to Virus & threat protection and selecting "Manage exceptions".
  • Only allow programs you trust and recognize — if you're unsure whether a program is safe, research it before adding it to exceptions.
  • Some programs need to be allowed both as an executable file and through your firewall, depending on what they do.

Allow a program through the security warning

When Windows Security blocks a program, a notification usually appears on your screen. Look for a message that says the program was blocked or that Windows Defender SmartScreen prevented an unrecognized app from running. Click the notification or look for a button that says "Manage settings" or "More info".

Once you click into the notification, you'll see an option to allow the program anyway. Select it, and Windows will add that program to its exceptions list. The next time you run it, the warning won't appear.

If the notification disappears before you can click it, or if you closed it by accident, you can still allow the program through the settings — see the next section.

Manually add a program to Windows Security exceptions

Open Windows Security by typing "Windows Security" into the search box at the bottom left of your screen and clicking the result. Once it opens, click "Virus & threat protection" on the left side.

Scroll down until you see "Manage settings" under "Virus & threat protection settings". Click it. You'll now see a section called "Exclusions" near the bottom of the page. Click "Add or remove exclusions".

Click the plus sign (+) to add an exclusion. Windows will ask you what type of item you want to exclude — choose "File" if you want to allow a single program, or "Folder" if you want to allow everything in a folder. Then browse to find the program file (usually ends in .exe) or the folder, select it, and click "Open". Windows Security will now skip that file or folder when scanning.

Allow a program through the Windows Firewall

Some programs need permission to communicate over the internet or your local network. If a program is blocked even after you've added it to Windows Security exceptions, it may need firewall permission instead.

Type "Windows Defender Firewall" into the search box and open it. Click "Allow an app through firewall" on the left side. You'll see a list of programs that already have firewall permission. Click "Change settings" at the top, then "Allow another app". Click "Browse", find your program, select it, and click "Open". Check both the "Private" and "Public" boxes if you want it to work on any network, then click "Add".

Close the window and try running the program again. It should now work without firewall warnings.

Understand what you're allowing

Before you add a program to exceptions, make sure it's something you actually want to run. Windows Security blocks programs for a reason — usually because they're new, unsigned, or came from an untrusted source. If you don't recognize the program name or don't remember downloading it, research it first.

A quick way to check is to search the program name plus "safe" or "virus" in a search engine. If multiple sources say it's legitimate, it probably is. If you see warnings about it being malware or a scam, don't allow it — delete it instead.

Once you allow a program, Windows Security stops checking it. That means if the program later becomes infected or behaves badly, Windows won't catch it. You're responsible for making sure the program is something you trust.

Remove a program from exceptions if you change your mind

If you added a program to exceptions and later want to block it again, go back to Windows Security and click "Virus & threat protection". Click "Manage settings", then scroll to "Exclusions" and click "Add or remove exclusions". Find the program in the list, click it, and click "Remove".

The program will go back to being blocked or triggering warnings the next time you try to run it. You can always add it back later if you change your mind.

What to do if you can't find the program file

Some programs install in hidden system folders or use names that don't match what you see in your Start menu. If you can't find the program when browsing for it, right-click the program's shortcut on your desktop or in the Start menu and select "Open file location". This will show you exactly where the program is stored. You can then add that location to Windows Security exceptions.

If there's no shortcut, try searching for the program name in File Explorer. Type the program name into the search box in the top right of any folder window, and Windows will find it for you. Once you locate it, note the full path (the folder location shown at the top of the window) so you know where to point Windows Security.

Frequently Asked Questions

Is it safe to allow programs through Windows Security?

It's safe if you trust the program. Windows Security is designed to protect you from malware, so allowing a program means you're taking responsibility for it. Only allow programs you recognize and downloaded from sources you trust. If you're unsure, research the program first or ask someone who knows about computers.

Will allowing a program slow down my computer?

No. Adding a program to exceptions doesn't slow your computer down. It just tells Windows Security to stop checking that one program. Your computer may actually feel slightly faster because Windows isn't scanning that program every time it runs, but the difference is usually too small to notice.

What's the difference between adding a file and adding a folder to exceptions?

Adding a single file (the .exe) only allows that one program. Adding a folder allows everything in that folder, which is useful if a program has multiple files that need to run. If you're unsure, start with the single file — you can always add the folder later if the program still has problems.

Can I undo allowing a program if it turns out to be malware?

Yes. You can remove it from exceptions at any time using the steps in the "Remove a program from exceptions" section above. After you remove it, run a full scan in Windows Security to check if the program left any infections behind. If you're concerned, you can also uninstall the program entirely through Settings > Apps.

Why does Windows Security block programs in the first place?

Windows Security blocks programs it doesn't recognize because they could be malware or unsafe. When a program is new, unsigned (not verified by its maker), or came from the internet, Windows treats it as suspicious until you tell it otherwise. This is a safety feature — it stops malware from running automatically without your knowledge.