Avatar of John Water
John Water
Flag for United States of America asked on

Before I prepareAD in Hybrid environment, Where do I run cmd to export Organization Conf, on premise or in O365?

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.
ExchangeMicrosoft 365XML

Avatar of undefined
Last Comment
John Water

8/22/2022 - Mon

View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Saif Shaikh

Yes Deman is correct you need to export configuration from O365 powershell.

You can install the powershell V2 module to connect to O365.

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".

John Water

I do appreciate your responses and did see that MS reference.
Before posting my question here, I had started to second guess myself - I was thinking that since this new Exchange 2019 server was on premise, I should extract the XML file from an on premise server.

I have found in the past MS documentation is sometimes unclear and sometimes inaccurate. I was hoping to get some real-life expert advice to either ignore the documentation (and extract the XML from on premise) or confirmation that I did need to make sure to connect to O365 online in order to get the XML file.

It would be very useful if someone could confirm any actual application of the MS documentation in a similar situation, to validate its accuracy.

 Thank you,
Your help has saved me hundreds of hours of internet surfing.