Monday, 14 September 2015

Exchange 2007 - 2013: Export Settings

When migrating Exchange services between servers, it's always a good idea to document the settings you're going to change before changing them to ensure you can roll back and it also makes troubleshooting easier.

I've made a simple script that will collect the settings that you'd change in an Exchange 2007/2010 to Exchange 2013 migration. The settings exported are:


  • All virtual directory authentication and URL settings
  • Receive connector settings
  • Send connector settings
  • CAS server settings
  • OAB settings
  • Mailbox database settings
  • Outlook Anywhere settings
  • Accepted domains


Run the script below to export these settings to txt files in the folder C:\ExchnageSettings

md C:\ExchangeSettings

$Commands = gcm get*virtual*
$Commands += "Get-ReceiveConnector","Get-SendConnector","Get-ClientAccessServer","Get-OfflineAddressBook" `
,"Get-MailboxDatabase","Get-OutlookAnywhere","Get-AcceptedDomain" | % {gcm $_}

$Commands | % {

$command = "Write-Host $_; $_ | fl "

Invoke-Expression $command | Out-File C:\ExchangeSettings\$_.txt


}

No comments:

Post a Comment