Check Which Process Locked a File Using PowerShell - Fix Windows Defender Disabled by Group Policy: Step-by-Step-Windows Update Component Reset 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.