How to Fix Windows Defender Error 504 in 5 Steps - Windows Defender Update Fails with 0x80240016-Fix 'Permission Denied' Error on Windows Update Log File

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.