Check Windows Version via PowerShell Command Line - Troubleshooting PowerShell WinRM Connection Refused-Office 365 Outlook Token Expired Troubleshooting

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