Link to home
Create AccountLog in
Avatar of John Water
John WaterFlag 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.
ASKER CERTIFIED SOLUTION
Avatar of DEMAN-BARCELO (MVP) Thierry
DEMAN-BARCELO (MVP) Thierry
Flag of France image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Yes Deman is correct you need to export configuration from O365 powershell.

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

Avatar of John Water

ASKER

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,