2022.10.1起 Excahnge 365 停用
TLS 1.1 及1.0
https://learn.microsoft.com/zh-tw/troubleshoot/azure/active-directory/enable-support-tls-environment?WT.mc_id=Portal-Microsoft_AAD_IAM&tabs=azure-monitor
故相對 Outlook 2010以下皆無法連線,2013可以改用OAuth處理
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Exchange]
"AlwaysUseMSOAuthForAutoDiscover"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common]
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Identity]
"EnableADAL"=dword:00000001
"Version"=dword:00000001
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Lync]
"AllowAdalForNonLyncIndependentOfLync"=dword:00000001
使用Powershell遠端連線 改採Exchange Online PowerShell V3
EXO v3
連線方法如下:
1.以管理者模式開啟PS
2.檢查可使用模組
Get-Module -ListAvailable -Name ExchangeOnlineManagement |
1 | Install-Module -Name ExchangeOnlineManagement -Force |
或是升級
1 | Update-Module ExchangeOnlineManagement |
確認安裝後則可以連線
1 2 | #Connect to Exchange Online Connect-ExchangeOnline |
連線也可以直接帶帳號
1 | Connect-ExchangeOnline -UserPrincipalName aaa@abc.com |