一.连接服务器
powershell
Connect-Exchangeonline
Install-module Exchangeonlinemanagement
Y
Connect-Exchangeonline
输入登录信息验证后登录
二.配置更改
关闭--外部访问
--禁止手机
ActiveSyncEnabled
Set-CASMailbox -Identity "user@domian.com" -ActiveSyncEnabled $false
--禁止OWA
OWAEnabled
Set-CASMailbox -Identity "user@domian.com" -OWAEnabled $false
--禁止POP
PopEnabled
Set-CASMailbox -Identity "user@domian.com" -PopEnabled $false
--禁止IMAP
ImapEnabled
Set-CASMailbox -Identity "user@domian.com" -ImapEnabled $false
--禁止outlook
MapiEnabled
Set-CASMailbox -Identity "user@domian.com" -MapiEnabled $false
--禁止SMTP
SmtpClientAuthenticationDisabled
Set-CASMailbox -Identity "user@domian.com" -SmtpClientAuthenticationDisabled $false
--查询邮箱
get-mailbox
Get-CasMailbox -ResultSize unlimited -Filt