禁用邮箱的过程是断开活动目录用户和邮箱之间的连接, 恢复已禁用的邮箱, 是将活动目录用户和邮箱重新连接.
必须在 "保留已删除邮箱的期限到期之前" 进行.
首先, 选择要禁用的邮箱, 点击... 之后选择 [禁用]
弹出警告信息, 选择 [是]
禁用完成后, 控制台中将看不到被禁用的邮箱.
如果后期想恢复已经被禁用的邮箱, 请按照下面的步骤操作.
点击 [...] 后, 选择 [连接邮箱] .
从列表中选择要恢复的邮箱.
可以把邮箱恢复到原始位置 (如果被禁用邮箱关联的 AD 账户还存在的话), 也可以重新连接绑定到一个新的 AD 账户上.
使用 powershell 的方式
Get-Mailbox mailuser10
Disable-Mailbox mailuser10
exchange 2016 场景下查看已禁用邮箱
Get-MailboxStatistics -Database DB01 | Where { $_.DisconnectReason -ne $null }
连接已禁用的邮箱
``Connect-Mailbox -Identity "mailuser10" -Database DB01
Get-mailbox mailuser10
更新数据库状态命令示例 (当看不到已禁用邮箱时, 可能需要更新 database)
[PS] C:\Windows\system32>help Update-StoreMailboxState -Examples
名称
Update-StoreMailboxState
摘要
此 cmdlet 只在本地 Exchange Server 2013 中可用.
使用 Update-StoreMailboxState cmdlet 可以将 Exchange 邮箱存储中的邮箱的邮箱状态与对应的 Active Directory 用户帐户的
状态同步
有关以下语法部分的参数设置的详细信息, 请参阅语法.
-------------------------- 示例 1 --------------------------
此示例将更新位于邮箱数据库 MDB01 上并且 GUID 为 4a830e3f-fd07-4629-baa1-8bce16b86d88 的一个邮箱的邮箱状态.
Update-StoreMailboxState -Database MDB01 -Identity 4a830e3f-fd07-4629-baa1-8bce16b86d88
-------------------------- 示例 2 --------------------------
此示例将更新邮箱数据库 MDB02 上所有邮箱的邮箱状态.
Get-MailboxStatistics -Database MDB02 | ForEach { Update-StoreMailboxState -Database $_.Database -Identity $_.Mailb
oxGuid -Confirm:$false }
-------------------------- 示例 3 --------------------------
此示例将更新邮箱数据库 MDB03 上所有已断开连接的邮箱的邮箱状态.
Get-MailboxStatistics -Database DB01 | Where { $_.DisconnectReason -ne $null } | ForEach { Update-StoreMailboxState -Database $_.Database -Identity $_.MailboxGuid -Confirm:$false }
来源: http://www.bubuko.com/infodetail-2481575.html