从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
}
原文地址:http://blog.51cto.com/3032439/2299842
时间: 2024-10-08 16:23:20