Turn off Windows Defender real-time protection temporarily

Some installs and repairs fail while the antivirus scans every file. Windows lets you switch off Microsoft Defender's real-time protection for a short time; it turns itself back on.

Time
1 minute
Level
Easy
You need
An administrator account.

Before you start

  • Turn protection off only for a task you trust, such as installing a program from its official website. Do not open unknown files or browse while it is off.
  • If one file or folder is being blocked, an exclusion is safer than turning protection off (see below).

Windows 11 and 10

Steps written for Windows 11 and Windows 10 (the steps are the same).

  1. Open Windows Security

    Select Start, type Windows Security and open the app.

  2. Open the protection settings

    Select Virus & threat protection, then under Virus & threat protection settings select Manage settings.

    Windows Security, Virus & threat protection, Manage settings link
    Virus & threat protection > Manage settings. Screenshot: Windows 11 26H2
  3. Switch off Real-time protection

    Set Real-time protection to Off and select Yes when Windows asks for permission.

    Real-time protection switch in Virus & threat protection settings
    The Real-time protection switch; it turns back on automatically after a short time. Screenshot: Windows 11 26H2
  4. Do the task right away

    Run the install or repair your guide describes now. Real-time protection turns back on by itself after a short while.

    Windows Security showing Real-time protection switched Off with the warning that the device is vulnerable
    With the switch Off, Windows Security warns that the device is vulnerable until protection is back on. Screenshot: Windows 11 26H2
  5. Turn it back on

    When the task is done, set Real-time protection back to On instead of waiting.

Steps checked against Microsoft Support: Virus and threat protection in the Windows Security app (Jan 2026); our Windows 11 26H2 screenshots on Oct 3, 2026.

If the switch will not stay off

  • Tamper protection: Microsoft says that if tamper protection is on, you need to turn it off first (same page, further down). Turn it back on afterwards.
  • Work or school PC: the IT department may control this setting.
  • Another antivirus is installed: Microsoft Defender turns itself off when a compatible third-party antivirus is active. Pause that program instead, using its vendor's instructions.

Safer: exclude one file or folder

If Defender keeps blocking one trusted program or folder, add an exclusion instead: on the same Virus & threat protection settings page, under Exclusions, select Add or remove exclusions and choose File, Folder, File type or Process. Excluded items are not scanned in real time, so add only what you trust, and remove the exclusion when you no longer need it.

What is off and what is not

While real-time protection is off, files you open or download are not scanned. Scheduled scans still run. The firewall is a separate setting and stays on.

Used in 200 guides

How to fix "0x8096002A: No error description available" in Windows?

How to fix Steam library folder not writable error in Windows?

How to fix "This site can't be reached" in Chrome on Windows?

How to fix Windows update stuck on "Working on updates"?

Bluebook not opening on Windows: fix "An unexpected error has occurred"

How to fix GeForce Now error 0x800b1004 in Windows?

How to fix BlueStacks not installing in Windows?

How to fix ZIP or RAR files extracting slowly in Windows 11?

How to fix "You're offline. Check your connection" on YouTube?

How to fix “No Route” error in Discord?

How to fix Steam error "MISSING DOWNLOADED FILES" in Windows?

How to fix Steam Login Error Code E87 in Windows?

How to fix mouse double-clicking on a single click?

How to fix RESULT_CODE_HUNG error in MS Edge and Google Chrome?

How to fix Exception on Invalid Stack Black Screen error in Windows?

How to fix Windows update error 0x800f0987?

How to fix Xbox app error 0x87e50028 when launching games in Windows?

How to fix Phone Link clipboard not working?

How to fix "You were disconnected from Blizzard services" error in Windows?

How to fix File System Error (-2147219195) in Windows?

How to fix Windows update error 0x8007065e?

How to fix Windows update error 0x800F0223?

How to fix Windows update error 0x800706ba?

How to fix Time synchronization failed with time.windows.com?

How to fix "Source file could not be read" error on Firefox?

How to fix Valorant error code 38?

How to fix the WdFilter.sys blue screen (BSOD) on Windows

How to fix "We couldn't connect to the update service" Windows update error?

How to fix Website Online but Isn't Responding to Connection Attempts?

How to fix Windows update error 0x80071160?

How to fix error 0x80240013 in Microsoft Store (Windows Store)

How to fix 0x81000001 error when creating backup in Windows?

How to fix Windows update error 0x800705b9?

How to fix "The connection was terminated by the remote computer" error in Windows?

How to fix Windows update error 0xc190011f?

How to fix ".exe has stopped working" error on Windows 10 and Windows 11?

How to fix Windows update error 0x80188309?

How to fix Windows upgrade error 0x80070004 - 0x2000D?

How to fix Windows update error code 0x80244022?

How to fix Media Creation Tool error 0x8007043C - 0x90018 in Windows?

How to fix error 0x8000000b when you add an email account in Windows

Error 1053: The service did not respond to the start or control request in a timely fashion

How to fix "The feature you are trying to use is on a network resource that is unavailable"

How to fix "Sorry, we couldn't connect you" error in Microsoft Teams?

How to fix Xbox app error code 0x87e00004 in Windows?

Scanner error WA003-0100: how to fix it on a Brother printer in Windows 11 and 10

How to fix "Epic Games Launcher setup wizard ended prematurely" error in Windows?

How to fix mfplat.dll missing or not found in Windows 10 and 11?

How to fix KernelBase.dll causes application crashes in Windows?

How to fix error 0x80240004 in Microsoft Store and Windows Update

How to fix Windows update error 0x8024a22d?

How to fix Windows update error 0x80020010?

How to fix "Error 0x800701AA: The cloud operation was not completed" in Windows?

How to fix "Upgrade to iCloud for Windows failed" error in Windows?

How to fix DSOUND.dll is missing or not found error in Windows?

How to fix Outlook error 0x800CCC17 in Windows?

How to fix Microsoft Store error 0x80073D23 in Windows?

How to fix Windows Update error 0x80d05001

How to fix Media Creation Tool error 0x80070005 - 0xA001B in Windows?

How to fix Event ID 1026 error in Windows?

How to fix Riot Client not launching in Windows?

How to fix Forza Horizon 5 error 0xc0000005 in Windows?

How to fix OneDrive error 0x8004def4 in Windows?

How to fix the vgk.sys blue screen error in Windows

How to fix Windows update error 0x80240022?

How to fix Microsoft Office error 0-2031 in Windows?

How to fix webcam error code 0xA00F4243(0xC00D3704) on Windows?

How to fix error 0x80240008 in Microsoft Store and Windows Update

How to fix Windows installation error 0x80070002 - 0x20009?

How to fix Monster Hunter World error code 50382-MW1 in Windows?

How to fix Windows update error 0x8024a203?

How to fix Windows update error 0xC80003FA?

How to fix error code 0x80240438 on Windows 10?

How to fix "MSI.CentralServer.exe is abnormal" error in Windows?

How to fix "The Steam Client Service service failed to start" error in Windows?

How to fix "Security or Firewall Settings might be blocking the connection" in Windows?

How to fix Windows update error 0xc8000444?

How to fix msteams_autostarter.exe error in Windows?

How to fix Windows Update error 0x80096004?

How to fix Microsoft 365 activation error "Trusted Platform Module has malfunctioned"?

How to fix “There was an error trying to load your shopping cart” error on Steam?

How to fix File system error (-2147163901) in Windows?

How to fix Windows update error 0x800f0989?

How to fix "You can't sign in with this account" error in Windows?

How to fix Microsoft Store error 0x8007000A?

How to fix Microsoft Office error 30033-44 in Windows?

How to fix Microsoft Office installation error 30016-22 in Windows?

How to fix Windows Error Reporting Event ID 1001?

How to fix ClipUp.exe - Bad Image error in Windows?

How to fix Windows update error 0x80070050?

How to fix OneDrive error 0x8004da9a in Windows?

How to fix Xbox app error 0x80073D19 in Windows?

How to fix ELEX II crashing on startup in Windows 11 and 10

How to fix Microsoft Office error 30088-4 in Windows?

How to fix Microsoft Office error 30068-39 in Windows?

How to fix Steam error code 106 in Windows?

How to fix Microsoft Store error 0x800713AB?

How to fix System Restore error code 0x81000202 in Windows?

How to fix "Unable to find the Ubisoft Game Launcher" error in Windows?

How to fix Windows update error 0x800f0801?

How to fix Epic Games error code LS-0013 in Windows?

How to fix KB5057056 fails to install in Windows 10?

How to fix Microsoft Store error 0x8D050003 in Windows

How to fix Steam Client WebHelper high CPU usage?

How to fix Outlook error 0x8004011c in Windows?

How to fix 0x87e00005 Xbox app error in Windows?

How to fix SSL_ERROR_HANDSHAKE_FAILURE_ALERT error in Windows?

How to fix Windows update error 0x80004002?

How to fix OneDrive error 0x8007018b in Windows?

How to fix KB5060999 fails to install in Windows 11?

How to fix error code 0x800704b3 in Windows?

How to fix socket error 10013 in Windows?

How to fix KB5058499 fails to install in Windows 11?

How to fix CLR20r3 error in Windows?

How to fix DirectX error "Setup could not download the file" in Windows?

How to fix Microsoft Office error code 30174-8 (1392)?

How to fix Microsoft Office error 30180-4 in Windows?

How to fix Windows update error 0x8024401F?

How to fix Couldn't start Files on Demand error code 0xffffffea in OneDrive?

How to fix KB5060842 fails to install in Windows 11?

How to fix Windows update error 0x80072f76?

How to fix 0x8024200B error on Windows?

How to fix KB5060533 fails to install in Windows 10?

How to fix Media Creation Tool error 0x80070006 - 0x90018 in Windows?

How to fix "Error 1067: The process terminated unexpectedly" in Windows?

How to fix FIFA 23 Error: Unable to Save Personal Settings 1?

How to fix Microsoft Office installation error 30182-39 in Windows?

How to fix "A connection to the Steam VAC servers could not be made" error in Windows?

How to fix Camera app error 0xA00F4240 in Windows?

How to fix "No Network Connection [2603]: Please check your network settings" in OneDrive?

How to fix Microsoft Store error 0x80D03805 on Windows

How to fix "Your camera is reporting that it is blocked or turned off" error in Windows?

How to fix Windows update error 0x800700a1?

How to fix Microsoft Office error 0-2054 in Windows?

How to fix Microsoft Office error code 30015-44 in Windows?

How to fix Windows update error 0x8024402D?

How to fix Office 365 sign-in error 0xcaa70010 in Windows?

How to fix Windows update error code (-2147024864)?

How to fix Microsoft Office activation error 0x4004F00C in Windows?

How to fix "Unable to delete all specified values" Registry Editor error in Windows?

How to fix "Can't start your camera" error 0xA00F429E in Windows?

How to fix "Extracting files to the temporary location" error 1152 in Windows?

How to fix Easy Anti-Cheat error 30005 (Create File Failed with 32) when launching games?

How to fix Windows update error 0x80244018?

How to fix Microsoft Teams error CAA90019 in Windows?

How to fix Windows update error 0x80070661?

How to fix "can't find the printer" error 1801 in Windows?

How to fix webcam error code 0xA00F4271 (0x80070001) on Windows?

How to fix Microsoft Office error code 0x2-0x0 in Windows

How to fix Steam error "No download source" in Windows?

How to fix MS Paint not working in Windows 11?

How to fix Xbox app is stuck at "Launching Xbox App" in Windows?

How to fix Windows update error 0x800B010F?

How to fix 0x800700aa error in Windows?

How to fix "The specified user does not have a valid profile" error in Windows?

How to fix the RandGrid.sys blue screen (BSOD) in Windows

How to fix KB5063878 fails to install in Windows 11?

How to fix Windows update error 0x8024000b?

How to fix "Microsoft Office encountered an error during setup" in Windows?

How to fix Proxy Authentication error 2606 in OneDrive?

How to fix Xbox app error "Content failed to load" in Windows?

How to fix 0x89240101 error in Age of Empires IV?

How to fix INET_E_DOWNLOAD_FAILURE on IE and Edge?

How to fix Kernel-PnP Event ID 411 in Windows?

How to fix "Internal error: CallSpawnServer: Unexpected response: $0" in Windows?

How to fix Windows update error 0x8007006E?

How to fix Windows update error 0x80240035?

How to fix Windows update error 0x80070306?

How to fix Windows update error 0x80244017?

How to fix Microsoft Office error 30088-45 in Windows?

How to fix installation error 0x80040c01 in Windows?

How to fix Microsoft Office installation error 0-2060 in Windows?

How to fix Microsoft Store error 0x8A150049?

How to fix Prototype 2 crashing on startup in Windows 11 and 10

How to fix Microsoft Teams error CAA90063 in Windows?

How to fix the NetAdapterCx.sys blue screen (BSOD) in Windows

How to fix 0x00000bc4 "No printers were found" error in Windows?

How to fix Windows update error 0x80242008 in Windows?

How to fix evr.dll missing or not found in Windows?

How to fix Microsoft Store error 0x80073CF1 on Windows

How to fix Office installation error 30094 in Windows?

How to fix Outlook error code 3399811147 in Windows?

How to fix Microsoft Teams error 657rx (Something went wrong) in Windows?

How to fix "The operation was canceled by the user (0x4C7)" error on Steam?

How to fix Teams error code 2148073494 in Windows?

How to fix "Bootstrapper has stopped working" error in Windows?

How to fix Camera app error 0xA00F4293 in Windows?

How to fix "Can't create files" error in Windows Installation Assistant?

How to fix “There was a problem loading this web content” error on Steam?

How to fix Microsoft Office installation error 30182-1011 in Windows?

How to fix "Could not call proc" error in Windows?

How to fix FIFA 22 not launching in Windows?

How to fix Microsoft Store error 0x80073CF8 on Windows

How to fix "Installation has failed" error in Microsoft Teams?

How to fix "Steam must be running to play this game" error in Windows?

How to fix Xbox app error 0x80004005 in Windows?

How to fix Microsoft Office error code 30015-11 (3221225506) in Windows?

How to fix Fatal Error C0000022 on Windows?

Error code 2148073520: how to fix sign in error 2148073520 (tag 657rx) in Windows?

How to fix error 0xA00F4241 in Windows?

Sources

  1. Microsoft Support: Virus and threat protection in the Windows Security app (read Oct 3, 2026)

Questions and experiences

Ask about this page: members and our editors answer. Reading is open; writing needs a free account.

0 comments

…

4,322 members already hereThey read, write, comment and vote. 0 verified · 31 joined this year