How To Disable Windows Defender On Windows 11 (Temporarily + Permanently)

Disable Windows Defender Windows 11Disable Windows Defender Windows 11

Windows 11 comes preinstalled with Windows Security, formerly known as “Microsoft Windows Defender Antivirus.” As you may already be familiar with the app and its name, the purpose is to keep your devices safe and secure from any harmful and malicious content. However, users may be required to turn it off entirely due to several reasons.

You may need to install any third-party software that the Defender is blocking, or use other antivirus software and no longer need Windows Defender. For any reason, Windows Defender can be disabled both permanently and temporarily.

This post discusses how you can disable Windows Defender Antivirus on Windows 11 both temporarily and permanently while discussing other myths that are said to work in disabling Defender but do not.

Disable Windows Defender in Windows 11 Temporarily

Our first step will be to temporarily disable Defender. Here’s how you can do it on Windows 11: 

  1. Navigate to the following:

    Settings app >> privacy & security >> Windows Security >> Virus and Threat Protection
  2. Click on “Manage settings” under the “Virus & threat protection” section.

    Manage virus and threat protection settings
    Manage virus and threat protection settings
  3. Toggle the slider under “Real-time protection” to the Off position.

    Disable real time protection
    Disable real-time protection

    If prompted with a UAC, click Yes.

This will temporarily disable only the real-time protection component from your Windows Defender, which means that you should be able to install any app or program that was being prevented by it.

However, Windows Defender will re-enable itself the next time the device is restarted.

Disable Windows Defender in Windows 11 Permanently by taking ownership

There is a Group Policy Object (GPO) in Windows 11 by the name “Turn off Microsoft Defender Antivirus” which is supposed to turn off the Defender once enabled. However, this GPO is also reset when the Windows 11 device is restarted. Therefore, it is not a means to disable Windows Defender permanently.

I have tested most of the methods available on the Internet, including Windows Registry manipulation, disabling services, and removal of the Wdboot driver. However, none of these have worked for us so far.

However, there seems to be a method that does the trick of taking ownership of Windows Defender files and folders, and then removing all permissions.

We have divided these methods into different parts so that you can keep track of the activity while performing it.

Before you begin, make sure that you have access to an administrator account.

Step 1: Boot into Safe Mode

The purpose of booting into Safe Mode is to avoid the running of unnecessary apps, programs, and services that may hinder the process. Here’s how to boot into Safe Mode in Windows 11:

  1. Open the System Configuration window by typing in “msconfig” in the Run Command box.

    msconfig
    Open System Configuration
  2. Switch to the Boot tab.

    Switch to the Boot tab
    Switch to the Boot tab
  3. Click “Safe boot,” and then click Apply and OK.

    Select Safe Boot
    Select Safe Boot
  4. In the confirmation dialog box, click Restart.

    Rstart the PC
    Restart the PC

Your device will now restart and boot into Safe Mode. Log in to the administrator account and continue to the next phase.

Step 2: Take Ownership

You must now take complete ownership of the Windows Defender executable files to permanently disable it. Here is how:

  1. Open File Explorer and enter the path below:

    C:\programdata\Microsoft\Windows Defender\
    path
    Enter the path to Defender’s files

    You can also navigate to this path using the GUI after unhiding the “ProgramData” folder.

  2. Right-click on the folder “Platform” and click Properties from the context menu.

    properties
    Open Platform properties
  3. Switch to the Security tab and click Advanced.

    advanced
    Open Advanced security settings
  4. Click Change in front of Owner.

    change
    Change owner
  5. Select the “Administrators” group as the owner of the files.

    check names
    Set Administrators as owners

    Enter “Administrator” in the text field below the “Enter the object name to select” section. Then click “Check Names.” When the field displays the complete name of the user group as in the image above, click OK.

  6. Back in the Advanced Security Settings window, check the box next to “Replace owner on subcontainers and objects,” then click Apply.

    check box 1
    Replace the subcontainer owner
  7. In the confirmation box, click OK.

    ok
    Confirm action

    Do not close the Advanced Security Settings window.

Your user account has now taken ownership of the Windows Defender files. It’s time to move on to the next phase of the process.

Step 3: Remove Permissions

Now that you have the ownership, it is time to remove the permissions of the other users and groups. Here is how:

  1. Select each Permission Entry from the list and click Remove.

    remove
    Remove permissions
  2. Repeat Step 1 until all entries are removed.

  3. Check the box next to “Replace all child object permission entries with inheritable permission entries from this object” and click Apply and OK.

    If prompted for a confirmation, click Yes.

    replace all
    Replace child object permissions

The permissions have now been removed successfully.

Step 4: Reboot Normally

Now all you need to do is reboot the computer normally (Without Safe Mode). Here is how:

  1. Open the System Configuration window by typing in “msconfig” in the Run Command box.

    msconfig
    Open System Configuration
  2. Select “Normal startup” and then click Apply and OK.

    normal startup
    Boot Windows normally
  3. In the confirmation dialog box, click Restart.

    restart 2
    Restart PC normally

The computer will now reboot into normal mode. When it does, you can check and confirm that Windows Defender has been permanently disabled by verifying that the Virus & Threat Protection option in Windows Security has disappeared.

no virus and threat
No Virus or Threat Protection option in Windows Security

Disable Windows Defender in Windows 11 Permanently from Windows Registry

Another method to disable Windows Defender permanently is by tweaking the Windows Registry. Here is how:

Note: Misconfiguration of critical values in the system’s registry could be fatal for your operating system. Therefore, we insist that you create a system restore point or a complete system image backup before proceeding forward with the process.

You can also use our top selection of disk imaging and backup software so you never lose your data or operating system again.

  1. Press the Windows key + i to open the Settings app.

  2. Click “Privacy & security” on the left.

  3. Click “Windows Security.”

  4. Click “Virus & threat protection.”

    This will open the Windows Security app

  5. Click “Manage settings” under “Virus & threat protection settings.”

    Manage virus and threat protection settings
    Manage virus and threat protection settings
  6. Toggle the slider under “Tamper protection” into the Off position.

    Disable tamper protection
    Disable tamper protection
  7. Now press the Windows key + R to open the Run Command box.

  8. Type in “regedit” and press Enter to open the Registry Editor.

  9. Navigate to the following path from the left pane:

    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender
  10. Right-click the “Windows Defender” key, expand New, and click “DWORD (32-bit) Value.” Name this DWORD “DisableAntiSpyware“.

    Create the DWROD DisableAntiSpyware
    Create the DWORD DisableAntiSpyware
  11. Now repeat the last step and create the following DWORDs:

    • DisableRealtimeMonitoring
    • DisableAntiVirus
    • DisableSpecialRunningModes
    • DisableRoutinelyTakingAction
    • ServiceKeepAlive
  12. Set the values for these DWORDs as given here:

    • DisableAntiSpyware – 1
    • DisableRealtimeMonitoring – 1
    • DisableAntiVirus – 1
    • DisableSpecialRunningModes – 1
    • DisableRoutinelyTakingAction – 1
    • ServiceKeepAlive – 1
    Create the DWORDS
    Create the DWORDS
  13. Now create a new key under the “Windows Defender” key by right-clicking it, expand New, and click Key. Name this key “Real-Time Protection.”

    Create a new key
    Create a new key
  14. Now create the following DWORDS inside “Real-Time Protection” key with the given values:

    • DisableBehaviorMonitoring – 1
    • DisableOnAccessProtection – 1
    • DisableScanOnRealtimeEnable – 1
    • DisableRealtimeMonitoring – 1
    Create DWORDs inside the RealTime Protection key
    Create DWORDs inside the RealTime Protection key
  15. Now create a new key by the name “Signature Updates” under the “Windows Defender” key, and then create the following DWORD inside it with this value:

    • ForceUpdateFromMU – 1
    Create the SignatureUpdates key and add DWORD
    Create the Signature Updates key and add DWORD
  16. Create another key under “Windows Defender” by the name “Spynet” and add the following DWORD:

    • DisableBlockAtFirstSeen – 1
    Create the Spynet key with the DWORD
    Create the Spynet key with the DWORD
  17. Now restart the computer for the changes to take effect.

Once the computer restarts, Windows Defender will be disabled indefinitely, unless you revert the changes made to the Registry.

Closing Words

Once Windows Defender has been deactivated, your device becomes vulnerable if you do not have another antivirus to protect it. Therefore, if you do intend to keep it disabled, we suggest that you consider these 17 aspects before making an antivirus purchase.

If you liked this post, Share it on:
Subhan Zafar is an established IT professional with interests in Windows and Server infrastructure testing and research, and is currently working with Itechtics as a research consultant. He has studied Electrical Engineering and is also certified by Huawei (HCNA & HCNP Routing and Switching).

Get Updates in Your Inbox

Sign up for the regular updates and be the first to know about the latest tech information

Talk to us now

Talk to us straight and get your questions answered right away

Tell Us About Your Project