Fix Windows Security Error This Setting Is Managed By Your Administrator on Windows 10/11
Fix Cannot turn on/off Windows Security Error This Setting Is Managed By Your Administrator on Windows 10/11
Step 1) Run These Commands
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /f
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKCU\Software\Microsoft\WindowsSelfHost" /f
reg delete "HKCU\Software\Policies" /f
reg delete "HKLM\Software\Microsoft\Policies" /f
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /f
reg delete "HKLM\Software\Microsoft\WindowsSelfHost" /f
reg delete "HKLM\Software\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /f
Step 2) Run these commands
Get-AppxPackage *Microsoft.SecHealthUI* | Reset-AppxPackage
Get-AppxPackage *windows.immersivecontrolpanel* | Reset-AppxPackage
Step 3) Update Windows
Step 4) Perform Cleanboot
Step 5) Uninstall third party antivirus program using revo uninstaller
https://www.revouninstaller.com/revo-uninstaller-free-download/
Restart your PC
Step 6) Remove Malware
https://www.malwarebytes.com/mwb-download
Step 7) Run this command
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Step 8) Update Windows using Media Creation Tool
https://www.microsoft.com/en-us/software-download/windows10
https://www.microsoft.com/en-us/software-download/windows11