1. 程式人生 > >導出Exchange 2007/2010設置

導出Exchange 2007/2010設置

sbo ffline mman line -s comm virt express mailbox

從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

}

導出Exchange 2007/2010設置