Win10电脑,管理员身份运行打开PowerShell,输入运行下列命令,并按照提示输入Office 365的管理员账号密码
Set-ExecutionPolicy RemoteSigned
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://partner.outlook.cn/powershell-liveid/ -Credential $O365Cred -Authentication Basic -AllowRedirection
Import-PSSession $Session
连接成功后,运行:
Set-TransportConfig -SmtpClientAuthenticationDisabled $false
运行成功,退出程序,等待15分钟后重新配置SMTP客户端