How to Disable Windows Security
Windows Security can block a program, quarantine a file, or remove an older app from an external USB drive. That can be frustrating, especially when you recognize the file and need it right away.
But “disable Windows Security” can mean several different things. You might mean turning off real-time antivirus protection, switching off the Windows Defender Firewall, or trying to stop Windows Defender permanently. These are separate controls with different risks.
Start with the smallest change that addresses the problem. In many cases, you only need to review a blocked item or briefly pause real-time protection while testing a known file.
What people mean by “disable Windows Security”
Windows Security is the main app that brings together several Windows protection tools. The two controls people most often confuse are:
- Real-time protection: Checks files and programs as you open, download, or install them. This is usually the setting involved when Windows Security blocks or removes a file.
- Windows Defender Firewall: Controls some network traffic between your computer and other devices or the internet. It is not the same thing as antivirus scanning.
- Permanent deactivation: Attempts to keep Defender or another Windows Security feature turned off. This is a bigger change and is not the normal fix for one blocked app.
Turning off the firewall will not necessarily stop an antivirus warning. Likewise, turning off real-time protection does not turn off the firewall.
That distinction matters. If an app is being blocked because Windows Security sees its file as unsafe, changing firewall settings may do nothing. If an app cannot connect to a service, temporarily changing antivirus protection may not solve the network problem.
Before turning off Windows Security: check whether an app or file is being blocked
First, look at the warning itself. Windows Security may have quarantined a file, stopped an app from running, or removed an older program. One search result describes Windows Defender automatically deleting old apps from an external USB drive, for example. A missing file is not always a sign that the whole security system needs to be disabled.
Before changing a protection setting, check:
- The file name and location. Make sure you know exactly which file or program was flagged.
- The warning shown by Windows Security. Look for the threat name and the action Windows took.
- The source of the file. A program you recognize can still contain a harmful or altered file.
- Whether you need the file right now. If you can get a fresh copy from the software maker, that may be safer than changing protection.
- Whether Windows Security has already moved the item to quarantine. If it has, turning off protection may not restore it automatically.
Recognition is not proof that a file is safe. Be especially careful with files copied from an old USB drive, downloaded from an unknown site, or bundled with another installer.
If you are unsure what was blocked, stop here and identify the item first. Do not switch off every protection feature just to see if the program opens.
How to temporarily turn off Windows Security real-time protection
The usual control is called Real-time protection. It is found under the virus and threat protection settings.
Windows 10 path
On Windows 10, use this route:
- Open the Start menu.
- Select Settings.
- Open Update & Security.
- Choose Windows Security.
- Select Virus & threat protection.
- Under the settings area, choose Manage settings.
- Find Real-time protection.
- Turn the switch off.
Windows may ask for permission before it changes the setting. Read the warning before confirming.
This is a temporary troubleshooting step, not a good way to run the computer every day. Once you have finished testing the program or handling the file, return to the same screen and turn Real-time protection back on.
Windows 11 path
Windows 11 uses a different top-level Settings section:
- Open Start.
- Select Settings.
- Choose Privacy & security.
- Open Windows Security.
- Select Virus & threat protection.
- Under virus and threat protection settings, choose Manage settings.
- Turn off Real-time protection.
The exact wording or layout can vary slightly after Windows updates, but the key labels are still Windows Security, Virus & threat protection, Manage settings, and Real-time protection.
If you only want to test whether antivirus scanning is causing the block, this is the control to consider. You do not need to turn off the firewall for that test.
Windows 10 and Windows 11 menu differences
The biggest difference is where Windows places the Windows Security page.
On Windows 10, the route begins with:
> Settings > Update & Security > Windows Security
On Windows 11, it begins with:
> Settings > Privacy & security > Windows Security
After that, both versions take you to the same general area:
> Virus & threat protection > Manage settings > Real-time protection
If you cannot find a setting, use the search box inside the Settings app and search for Windows Security or Virus & threat protection. Avoid downloading a separate “Defender disabler” tool just because the menu is hard to find.
A work, school, or family-managed computer may also restrict these controls. In that case, the switch might be unavailable or might turn back on. That does not mean you should try to bypass the restriction with an unknown script.
How to turn off Windows Defender Firewall
The firewall is a separate protection layer. Change it only when you are troubleshooting a network or connection problem and you have a clear reason to test it.
To reach the firewall controls:
- Open Windows Security.
- Select Firewall & network protection.
- Choose the active network profile.
- Find Windows Defender Firewall.
- Turn the firewall off.
Windows normally shows network profiles such as private, public, or domain networks. Make sure you know which profile you are changing. A public network, such as a hotel or coffee shop connection, deserves extra care.
Turning off the firewall reduces network protection. It also may not fix an app that antivirus scanning has blocked. If the program was quarantined or deleted, the firewall is not the relevant control.
Turn the firewall back on as soon as the connection test is complete. If the app still cannot connect, the real cause may be the app's own settings, a network problem, or a permission issue.
How to stop Windows Security from blocking a program without disabling everything
If one program is the problem, aim for a one-program fix rather than turning off all protection.
Start by checking the Windows Security alert. The alert may tell you whether the item was blocked, quarantined, or removed. It may also show the file involved. This gives you a better starting point than simply switching off antivirus protection.
Then work through these steps:
- Close the program and reopen it after checking the alert.
- Get a new installer or updated copy from the software maker if one is available.
- Check whether the program came from a trustworthy source.
- Make sure you are dealing with the correct file, especially if several copies have similar names.
- Use the Manage settings page only if you need a short, controlled test of real-time protection.
- Restore protection immediately after the test.
Do not assume that a familiar app is harmless. Attackers can disguise unsafe files with names that look like popular programs. If Windows Security repeatedly flags the same file, treat that as a reason to investigate, not as proof that Windows is simply being difficult.
If the file was removed from a USB drive, copy nothing else from that drive until you understand which item was flagged. A fresh copy from the original software provider is usually a better starting point than trying to force the old file to run.
Can Windows Defender be disabled permanently?
People often search for How to disable Windows Security in Windows 11 permanently or Disable Windows Defender Windows 11 permanently PowerShell. Permanent deactivation is a separate issue from briefly turning off real-time protection.
There is no single, reliable permanent method established by the instructions covered here that should be recommended as the default fix. Windows can also change how these controls behave through updates, account permissions, or device management. A command or script that claims to permanently remove protection may leave the computer in an unclear state.
For that reason, do not use an unverified PowerShell command or third-party “Defender remover” just to get one program running. PowerShell is a powerful Windows tool, and a command that changes security settings can create problems that are harder to spot than the original block.
If this is a work or school device, contact the person who manages it. If another trusted antivirus product is installed, check its settings and Windows' security status rather than trying to force Windows Defender off with a script.
Permanent disabling also removes your safety net for other files and apps, not just the one you are testing. That is a poor trade for a short-term compatibility problem.
Is it a good idea to disable Windows Defender?
Usually, no. Disabling antivirus protection is not a general performance or compatibility solution. It is a troubleshooting action that should be brief and limited to the feature causing the problem.
There are times when an administrator or experienced user may need to test whether Windows Security is interfering with a program. Even then, the safer approach is narrow:
- Identify the blocked item.
- Change one protection setting.
- Test only what you need to test.
- Avoid opening unrelated downloads or unknown files.
- Turn protection back on.
The same rule applies to the firewall. Do not turn off both antivirus protection and the firewall when you are investigating one issue. You lose more protection, while learning less about what caused the problem.
A safer troubleshooting sequence to follow
Use this order when an app will not open or a file has disappeared:
- Read the Windows Security warning. Find out whether the item was blocked, quarantined, or removed.
- Confirm the file's source. A known app name does not guarantee that a particular file is safe.
- Look for a clean, current copy. Prefer the software maker's download or the original trusted source.
- Decide which protection layer is involved. A file warning points toward antivirus settings. A connection problem may point toward the firewall.
- Change only that setting. For antivirus testing, use the Real-time protection control. For a network test, use the relevant firewall profile.
- Test briefly and carefully. Do not use the protection-free window to open other unknown files.
- Turn protection back on. Check both Real-time protection and the firewall if you changed both.
- Stop if the warning returns. Repeated detection needs investigation, not repeated disabling.
The best fix is usually the narrowest temporary change that lets you test the blocked app or file. Once the test is done, turn Windows protection back on before you continue using the computer.