How to Fix Command Prompt Login Loop Using Safe Mode - Command Prompt Fix for 502 Bad Gateway on Startup-Resolve Windows Search Dependency Conflict and Sync Problems

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