For the complete documentation index, see llms.txt. This page is also available as Markdown.

Turn off Windows Defender

Temporarily turn off Microsoft Defender real-time protection in Windows 10 or Windows 11.

Before you begin

  • Save your work. A restart may be required.

  • Note the setting's original state. Re-enable it immediately after testing.

Windows 10 and Windows 11

1

Open Windows Security

Select Start. Search for Windows Security, then open it.

You can also select Settings → Privacy & security → Windows Security in Windows 11. In Windows 10, select Settings → Update & Security → Windows Security.

2

Open Virus & threat protection

Select Virus & threat protection. Under Virus & threat protection settings, select Manage settings.

3

Turn off real-time protection

Set Real-time protection to Off. Select Yes if Windows requests administrator approval.

Keep this window open while you install or test the trusted software.

If the setting turns back on

This is expected. Windows restores protection automatically after a short period or restart.

Turn off VBS and Hyper-V

Virtualization-based security (VBS) and Hyper-V can prevent some software from running. Turn them off only when required. Restart Windows after completing these steps.

1

Turn off Memory integrity

Open Windows Security → Device security → Core isolation details.

Set Memory integrity to Off. Select Yes if Windows requests approval.

2

Turn off Hyper-V features

Search for Windows features. Open Turn Windows features on or off.

Clear these options if they are enabled:

  • Hyper-V

  • Windows Hypervisor Platform

  • Virtual Machine Platform

3

Restart Windows

Select OK to apply the Windows feature changes. Restart your device when prompted.

Use an exclusion for a trusted file

  1. Open Windows Security → Virus & threat protection → Manage settings.

  2. Under Exclusions, select Add or remove exclusions.

  3. Select Add an exclusion, then choose the specific file or folder.

A work or school device may be managed by your organization. If options are unavailable.

Last updated

Was this helpful?