如何批量添加和删除SMTP地址

为用户添加一个SMTP地址,
Set-Mailbox "Dan Jump" -EmailAddresses @{add="[email protected]"}

为用户添加多个SMTP地址:
Set-Mailbox "Dan Jump" -EmailAddresses @{add="[email protected]","[email protected]"}

查看用户的SMTP地址:

Get-Mailbox <identity> | fl EmailAddresses


删除SMTP地址:

为用户删除一个SMTP地址,
Set-Mailbox "Janet Schorr" -EmailAddresses @{remove="[email protected]"}
为用户删除多个SMTP地址:
Set-Mailbox "Janet Schorr" -EmailAddresses @{remove="[email protected]","[email protected]"}


如何设置Primary SMTP地址和Secondary STMP地址:

Set-Mailbox "fujingjie" -EmailAddresses SMTP:[email protected],smtp:[email protected]


你可能感兴趣的:(Exchange,Address,powershell,stmp)