How to Fix “No active antivirus provider” on Windows 10

The issue was due to ‘DisableAntiSpyware’ registry key under

HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender

which was set to 1.

This has to be changed to 0. And this will enable Microsoft Defender as the active antivirus.