Aug 19 2019 10:55 AM - edited Aug 19 2019 01:42 PM
I recently encountered a locked down environment and realized that I could not use the Exchange Online PowerShell module (with MFA) in the environment because TLS 1.0 was blocked as a client protocol. I recreated the scenario in my environment and sure enough, as soon as TLS 1.0 was enabled in the registry it would allow me to sign in. Is this expected behavior?
Aug 19 2019 07:20 PM
SolutionAnswering my own question :) I needed to update my PowerShell session to require TLS 1.2 and was good to go.
# Check Protocol Settings in PS Session
[System.Net.ServicePointManager]::SecurityProtocol
# Update to require TLS 1.2
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;