Allow Blocked Files or Apps in Windows Security
In this article
To manually allow a blocked file or app in Windows Security, open Windows Security > Virus & threat protection > Manage settings > Add or remove exclusions, and then select Add an exclusion to choose the specific file, folder, file type, or process. This process tells the Windows Defender antivirus engine to ignore a specific item during its scans, which is necessary when a legitimate program is flagged as a false positive and prevented from running.
When Windows Security blocks a file, it is usually because the file's signature is unknown or it exhibits behavior that resembles malware. While this is a critical security feature, legitimate software—especially niche tools, custom scripts, or newly released indie games—can sometimes trigger these alerts. By adding an exclusion, you are creating a "safe zone" for that specific item. It is important to note that labels and menu names may differ slightly depending on your specific version of Windows, your region, or recent system updates.
What You'll Need
- A computer running Windows 10 or Windows 11.
- Administrator privileges on the account you are currently using (required to change security settings).
- The exact file path or folder location of the app or file you wish to allow.
Step-by-Step
- Open Windows Security: Click the Start button, type "Windows Security" into the search bar, and press Enter. This will launch the main security dashboard.
- Navigate to Virus & Threat Protection: From the home screen of Windows Security, click on the Virus & threat protection icon. This section handles the real-time scanning and threat detection for your system.
- Access Manage Settings: Scroll down to the "Virus & threat protection settings" section and click the link labeled Manage settings. This opens the configuration page for real-time protection.
- Find the Exclusions Menu: Scroll to the bottom of the Manage settings page until you find the "Exclusions" header. Click on Add or remove exclusions.
- Initiate a New Exclusion: Click the button labeled Add an exclusion. A dropdown menu will appear providing four different options: File, Folder, File type, and Process.
- Select the Exclusion Type:
- File: Choose this if you want to allow one specific .exe or .dll file.
- Folder: Choose this if the app consists of many files in one directory. This is usually the most effective method for installed software.
- File type: Choose this to allow all files with a specific extension (e.g., .log or .bak). Use this with extreme caution.
- Process: Choose this to allow a program that is already running by its process name.
- Locate the Item: A File Explorer window will open. Navigate through your folders to find the blocked app or file. Once you have selected the file or folder, click Select Folder or Open.
- Confirm Permissions: If a User Account Control (UAC) prompt appears asking if you want to allow this app to make changes to your device, click Yes.
- Verify the Exclusion: You should now see the path of the file or folder listed under the Exclusions list. You can now attempt to launch your blocked application.
Common Mistakes
One of the most frequent mistakes is excluding an entire drive (such as C:\) or the entire Downloads folder. Doing this creates a massive security hole in your system, as any actual malware that lands in those locations will be completely ignored by the antivirus. Always be as specific as possible; exclude only the specific folder where the app is installed, not the parent directory.
Another common error is attempting to add an exclusion for a file that has already been quarantined. If Windows Security has already moved the file to the quarantine area, you cannot find it in File Explorer to add it to the exclusions list. You must first restore the file from the Protection history before the exclusion will work effectively.
Users also often confuse "Allowing an app through the Firewall" with "Allowing a file in Windows Security." The Firewall controls network traffic (internet access), while Virus & threat protection controls file execution. If your app opens but cannot connect to the internet, you need to adjust Firewall settings, not exclusions.
Tips
If you are dealing with a program that updates frequently, it is better to exclude the folder rather than the individual .exe file. When an app updates, the version number in the filename might change, or the file might be replaced, which could cause the specific file exclusion to stop working. A folder exclusion covers everything inside that directory regardless of filename changes.
Before adding any exclusion, it is a professional best practice to upload the suspicious file to a multi-engine scanner like VirusTotal. This allows you to see if dozens of other antivirus engines also flag the file. If only Windows Defender flags it, it is likely a false positive. If 40 different engines flag it as a Trojan, do not add an exclusion; delete the file immediately.
Keep a written log or a simple text file of the exclusions you have added. Over time, it is easy to forget why you excluded a certain folder. If you uninstall the app later, remember to go back into the exclusions menu and remove the entry to keep your system lean and secure.
Troubleshooting
If the app is still being blocked after you have added the exclusion, the first step is to check the Protection history. Go to Virus & threat protection > Protection history. Find the recent block event, click on it, and select Actions > Restore. This puts the file back in its original location so the exclusion can then apply to it.
If the file disappears immediately after restoration, it means the real-time protection is overriding the exclusion. Try disabling Real-time protection temporarily (Manage settings > Real-time protection toggle to Off), restore the file, add the exclusion, and then turn Real-time protection back on.
In cases where the app still won't run, check if the file is "Blocked" by Windows via the file properties. Right-click the .exe file, select Properties, and look at the bottom of the General tab. If there is a checkbox that says "This file came from another computer and might be blocked to help protect this computer," check the Unblock box and click Apply.
If none of the above work, ensure that you do not have a third-party antivirus installed (like Norton, McAfee, or Bitdefender). When a third-party antivirus is active, Windows Security often disables its own Virus & threat protection features to avoid conflicts. In this case, you must add the exclusion within the settings of your third-party software, not in Windows Security.
Frequently Asked Questions
Will adding an exclusion make my computer vulnerable?
Yes, it does. An exclusion tells Windows to stop scanning that specific area. If a virus happens to infect a file within that excluded folder, Windows Security will not detect it or stop it from running. Only exclude files from sources you trust completely.
What is the difference between a file exclusion and a process exclusion?
A file exclusion stops the scanner from looking at the physical file on the disk. A process exclusion stops the scanner from monitoring the actions of that program while it is actively running in the system memory.
Can I exclude a specific file extension?
Yes, you can choose "File type" when adding an exclusion and enter an extension like .log. However, this is risky because any malicious file renamed with that extension will also be ignored by the antivirus.
Why does Windows Security keep deleting my file even after I excluded it?
This usually happens because the file was quarantined before the exclusion was created. You must restore the file from the Protection history menu for the exclusion to take effect.
Does an exclusion apply to all user accounts on the PC?
Exclusions added via the Administrator account generally apply system-wide, meaning the file will be allowed regardless of which user is logged in and running the application.