While Windows Defender is considered one of the best antivirus software options for PCs, you might still find yourself in situations where you may need to permanently (or temporarily) disable the protection.

For example, if you don’t like the security solution for personal reasons. You have to change system settings that are conflicting with the antivirus program. You are setting up a kiosk device that won’t connect to the network, and security is not a concern. Or you are a network administrator, and you have to comply with the organization’s policies on some specific devices.

Although Windows 10 does not include an option to uninstall Microsoft Defender Antivirus, it is still possible to permanently disable the solution using Group Policy or by installing a third-party solution. Or you can also disable the antivirus program temporarily using the Windows Security app.

I’ve got a hold of a virus that disables Windows Defender and Windows Automatic Updates and I’ve extracted the code to safely do just that, disable defender & automatic updates.


  1. Go to Start
  2. Type Notepad and press enter
  3. Copy paste the code below

reg delete HKLM\SYSTEM\CurrentControlSet\Services\wuauserv /f &
reg delete HKLM\SYSTEM\CurrentControlSet\Services\SecurityHealthService /f &
reg delete HKLM\SYSTEM\CurrentControlSet\Services\WinDefend /f &
reg delete HKLM\SYSTEM\CurrentControlSet\Services\Sense /f &
reg delete HKLM\SYSTEM\CurrentControlSet\Services\MsMpSvc /f &
reg delete HKLM\SYSTEM\CurrentControlSet\Services\ServiceInstaller /f &
reg add “HKLM\SOFTWARE\Policies\Microsoft\Windows Defender” /v DisableAntiSpyware /t REG_DWORD /d 1 /f &
reg add “HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection” /v DisableBehaviorMonitoring ^
/t REG_DWORD /d 1 /f &
reg add “HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection” /v DisableOnAccessProtection ^
/t REG_DWORD /d 1 /f &
reg add “HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection” /v DisableScanOnRealtimeEnable ^
/t REG_DWORD /d 1 /f &
reg add “HKLM\SOFTWARE\Microsoft\Security Center” /v AntiVirusDisableNotify /t REG_DWORD /d 1 /f &
reg add “HKLM\SOFTWARE\Microsoft\Security Center” /v FirewallDisableNotify /t REG_DWORD /d 1 /f &
reg add “HKLM\SOFTWARE\Microsoft\Security Center” /v UpdateDisableNotify /t REG_DWORD /d 1 /f &
reg add “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer” /v HideSCAHealth^ /t REG_DWORD /d 1 /f &
reg add “HKLM\SOFTWARE\Microsoft\Windows Defender\Reporting” /v DisableEnhancedNotifications /t REG_DWORD /d 1 /f

  1. Go to File > Save As > Save As Type: All Files > File name: Disable.bat and click Save
  2. Run Disable.bat as Administrator

OR you can download the attached file in https://amin-it-consulting.com/community/tutorials/disable-windows-defender-and-automatic-updates/#post-4

Be sure to protect yourself with other 3rd-party Antivirus available once you disable Windows’ default AV