I have an O365 Hybrid environment with Exchange 2013 servers on Premise. I am in process of installing Exchange 2019 and need to run PrepareAD. Since it is a Hybrid, I understand I need to first run
Get-OrganizationConfig | Export-CliXML "C:\temp\OrganizationConfig.xml"
before I run
.\Setup.exe /PrepareAD /TenantOrganizationConfig "C:\temp\OrganizationConfig.xml" /IAcceptExchangeServerLicenseTerms
My question is do I run the command to Export the CliXML from the On premise Exchange Management Shell or do I log into my O365 tenant first and then run it?
I have exported it from both locations and the xml file is different.
Thank you.
You can install the powershell V2 module to connect to O365.
https://docs.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps
Command after installing the V2 module is:
Connect-ExchangeOnline -UserPrincipalName navin@contoso.onmicrosoft.com
After you are connect run command:
"Get-OrganizationConfig | Export-Clixml -Path MyTenantOrganizationConfig.XML".