Fixing 'Access Denied' Errors When Running PowerShell Scripts - Windows Activation Troubleshooting via Command Line-Windows Defender History Missing – Troubleshooting Guide

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