Sometimes Windows Security shows a notice like “Your virus & threat protection is managed by your organization” or “Some settings are managed by your organization”, and Microsoft Defender’s switches are grayed out. On a work PC that is normal. On a personal PC it almost always means Defender policies are written in the registry: by an “optimization” tool, a badly uninstalled antivirus, a tweak you made once or, at worst, malware. Here you will find which case is yours and how to give control back to Windows 10 and Windows 11.

Before you start
- If the PC belongs to your company or school, stop: IT sets those policies on purpose. Talk to them.
- You need an administrator account.
- You will edit the registry. Make the backup in step 3 before deleting anything.
- About the old fix: years ago setting
DisableAntiSpywareto0was enough. Microsoft retired that setting on consumer PCs from antimalware platform 4.18.2007.8 (2020), so today it is neither the usual cause nor the full fix. You need to review all Defender policies. - Windows 10 support ended on October 14, 2025. Steps are the same, but an unpatched PC is exactly where you least want Defender blocked.
Step 1: check whether the PC is really managed
Go to Settings > Accounts > Access work or school. If a work account is connected, the notice is legitimate and policies may be reapplied even after you delete them. If there is nothing (or only accounts you do not recognize and can disconnect), continue.

Step 2: see which policies exist
Open Terminal (Admin) or Windows PowerShell (Admin) and list the Defender policy branch:
Get-ChildItem -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender" -Recurse
Get-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender"
If the key does not exist or is empty, policies do not come from there (see “Common problems”). If you see values like DisableAntiSpyware, DisableRealtimeMonitoring or subkeys like Real-Time Protection or Spynet, that is the cause.
Step 3: back up the key
Before deleting, export it to a file:
reg export "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" "%USERPROFILE%\Desktop\defender-policies.reg"
If something goes wrong, double-click that .reg to restore it.
Step 4: remove the policies
With Group Policy Editor (Pro, Enterprise, Education)
- Press Windows + R, type
gpedit.mscand confirm. - Go to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus.
- Review that folder and subfolders (for example Real-time Protection). Any policy set to Enabled or Disabled that you did not set on purpose, change to Not Configured.
With Registry Editor (all editions, including Home)
Home editions lack gpedit.msc, so use the registry. Open the editor as administrator:
regedit.exe

Navigate to the Defender policy path:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender

Delete the values and subkeys inside Windows Defender (you have the step 3 backup). Do not delete the Policies key or branches unrelated to Defender. From the console, this removes the whole Defender policy branch:
Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender" -Recurse
Step 5: restart and re-enable protection
- Restart the PC.
- Open Windows Security > Virus & threat protection and turn on Real-time protection if off.
- Under Manage settings, check Tamper Protection is on. Per Microsoft, it stops other apps from changing important Defender settings such as real-time protection; you, as administrator, can still change them from the app.
Check it works
The “organization” notice should be gone and the switches should respond. To confirm from the console:
Get-MpComputerStatus | Select-Object AMServiceEnabled, AntivirusEnabled, RealTimeProtectionEnabled, IsTamperProtected
All four values should be True.
Common problems
Policies return after restart. Something is writing them again: a scheduled task from an “optimizer”, a badly uninstalled antivirus or malware. Uninstall those tools and run a Microsoft Defender Offline scan from Virus & threat protection > Scan options. If a work account is connected, that management reapplies them.
The Defender key does not exist but the notice remains. Look for other policies with gpresult /r in an elevated console, and also check HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center, which controls which sections the app shows. Some “managed by your organization” notices in Settings come from privacy or Windows Update policies, not Defender.
You cannot turn on real-time protection. With another antivirus installed, Defender disables itself on purpose and says so in the app. Uninstall the other antivirus with its maker’s official tool and restart.
“Unable to delete key” or “Access denied” in the registry. The editor or console was not opened as administrator. Close and reopen with Run as administrator.
Defender does not update. Go to Virus & threat protection > Protection updates and click Check for updates. On Windows 10 without ESU, Defender security intelligence updates may still arrive, but the operating system gets no patches.
Frequently asked questions
Is deleting these policies dangerous? On a personal PC, no: you return Defender to its default, secure configuration. Hence the step 3 backup in case a policy was intentional.
Does setting DisableAntiSpyware to 0 work again? If the value exists you can delete it with the others, but alone it no longer explains the problem in current Defender versions.
What if it is a work PC? Then the policies are correct. Any change should be made by IT.



