导出Exchange 2007/2010设置

从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

}

猜你喜欢

转载自blog.51cto.com/3032439/2299842