Fix PowerShell 'File Locked' or 'Permission Denied' Errors - Flush DNS Cache for Windows Update Errors-How to Set PowerShell as Default Terminal in Windows 11

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