SOLVED

TLS 1.2 Only Exchange Online PowerShell MFA module

Copper Contributor

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?

 

clipboard_image_0.png

1 Reply
best response confirmed by VI_Migration (Silver Contributor)
Solution

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;

 

1 best response

Accepted Solutions
best response confirmed by VI_Migration (Silver Contributor)
Solution

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;

 

View solution in original post