Reset Windows Security Using PowerShell: Step-by-Step - Fix Windows Update Permission Denied Error-Fix 502 Bad Gateway in PowerShell Invoke-WebRequest

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.