系统运维
从Exchange Server 2007&2010迁移到Exchange 2013时,最好保留旧服务器的设置。可以使用以下脚本将设置导出到文本:
md C:\\ExchangeSettings
$Commands = gcm get*virtual*
$Commands += Get-ReceiveConnector,Get-SendConnector,Get-ClientAccessServer,Get-OfflineAddressBook `
,Get-MailboxDatabase,Get-OutlookAnywhere,Get-AcceptedDomain,Get-SendConnector,Get-ReceiveConnector | % {gcm $_}
$Commands | % {
$command = Write-Host $_; $_ | fl
Invoke-Expression $command | Out-File C:\\ExchangeSettings\\$_.txt
}