Fix Task Scheduler 'Authentication Failed' Permission Errors - Fix 502 Bad Gateway in PowerShell Invoke-WebRequest-RDP Log File Locations: A Practical Troubleshooting Checklist

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