I was installing Exchange 2016 in to an existing Exchange 2010 environment which was also in a hybrid configuration with Exchange Online when I came across an issue.
During the setup of Exchange 2016 the wizard detects there is a hybrid configuration and asks you to enter your username and password of an organisational administrator in Exchange Online.
After clicking next, you may see “the username or password is invalid”, as shown below
I checked the following:
- Could connect to Exchange Online via the portal
- Could connect to Exchange Online powershell
- Checked the user was in fact a member of Organizational Administrators in Exchange Online
All the above was working as expected so from the Exchange Online PowerShell session I exported the tenant settings:
Get-OrganizationConfig | Export-Clixml -Path MyTenantOrganizationConfig.XML
I then went to the Exchange 2016 server and from the command line run the command:
Setup.exe /PrepareAD /TenantOrganizationConfig MyTenantOrganizationConfig.xml /IAcceptExchangeServerLicenseTerms
Once the setup had prepared Active Directory i could run the setup.exe and run through the Exchange install as normal.