Friday, 4 September 2015

Export Exchange 2007/2010 settings

When migrating to Exchange 2013 from Exchange 2007 or 2010, it's a good idea to keep a record of the working settings for the legacy server. A handy script to output the settings to multiple text files can be found below:


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


}

No comments:

Post a Comment