答案1
以下是可帮助您入门的 PowerShell 脚本:
$users = get-mailbox -OrganizationalUnit disabled
foreach ($user in $users) {
$newaddresses = @()
foreach ($address in $user.emailaddresses) {
$newaddresses += "SMTP:disabled." + $address.smtpaddress
}
$user.emailaddresses.clear()
foreach ($address in $newaddresses) {
$user.emailaddresses.add($address)
}
set-mailbox -identity $user.identity -emailaddresses $user.emailaddresses
}
答案2
ADModify 可以轻松实现这一点: