操作步驟
禁用郵箱
移除郵箱
禁用郵箱
在ECP控制檯,收件人——>郵箱,選中要禁用的郵箱。
移除郵箱
1)找到禁用郵箱,並記下郵箱所在database和郵箱guid
$dbs = Get-MailboxDatabase
$dbs | foreach {Get-MailboxStatistics -Database $.DistinguishedName} | where {$.disconnectdate -ne $null} | select displayname,MailboxGUID,database
2)移除郵箱
Remove-Mailbox -Database databasename -StoreMailboxIdentity 92d20afd-42d8-496e-9455-34b3d6cb066e