Check Windows Version via PowerShell Command Line - Troubleshooting Outlook Migration Error 0x8004010f-Fix Windows Update 502 Bad Gateway in Windows 10

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