Windows Defender Troubleshooting Checklist for Common Errors - Windows Defender Locked File During Scan: How to Fix-Fix Restricted PowerShell Scripts in VS Code

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