Create a DWORD 32bit key named UILockdown (case sensitive) and set the value as 0 at "Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Virus and threat protection" in the registry editor even if the location does not exist. You have to create the subfolders as well. After creating the key, Restart your computer and your Windows security should work now.
alternatively, you can run the".reg" file which can be downloaded here. TRY THE ABOVE METHOD FIRST.