Forum Discussion
TLS 1.2 Only Exchange Online PowerShell MFA module
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?
Answering 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;
- CAT_AndyPCopper Contributor
Answering 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;