Univention Bugzilla – Bug 55166
[MS365] Powershell script may fail with Unexpected authentication failure, due to TLS
Last modified: 2022-09-02 18:45:38 CEST
On a windows VM the powershell commands/scripts fail during auth with for example: Connect-MsolService : Authentication Error: Unexpected authentication failure When forcing a specific TLS version before executing the command, the command succeeds. In powershell: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Connect-MsolService This may not be an issue with different .net versions