您好,
请问您是指:导出这些邮箱的smtp(proxy)地址吗?如果是的话,以下的脚本将会对您有用:
$Mailboxes = Import-Csv c:\temp\Users.csv
$Data = @()
Foreach ($Mailbox in $Mailboxes) {
$temp = Get-Mailbox $Mailbox.DisplayName| select name,@{Expression={};Label="Secondary";}
$m = (get-mailbox $Mailbox.DisplayName).EmailAddresses.ProxyAddressString | Select -SkipLast 1
$temp.Secondary = $m
$temp2 = $temp | select name,@{Expression={$_.Secondary};Label="Secondary";}
$Data += $temp2
}
$Data | Export-Csv c:/temp/Result.csv -NoTypeInformation
此致,
Kyle Xu
如果以上回复对您有所帮助,建议您将其“标记为答复”. 如果您对我们的论坛支持有任何的建议,可以通过此邮箱联系我们:tnsf@microsoft.com.