Exchange 2016 Install - Hybrid Deployment Check - The username or password is invalid

%3CLINGO-SUB%20id%3D%22lingo-sub-1713511%22%20slang%3D%22en-US%22%3EExchange%202016%20Install%20-%20Hybrid%20Deployment%20Check%20-%20The%20username%20or%20password%20is%20invalid%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1713511%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EWe%20have%20exchange%202010%20with%20Exchange%20Online%20in%20hybrid%20mode.%26nbsp%3B%20We%20are%20trying%20to%20install%20Exchange%202016%20CU18%20on%20a%20new%20server%2C%20on%20the%20setup%20we%20are%20getting%20prompted%20to%20enter%20a%20user%20name%20and%20password%20to%20connect%20to%20Office365%3A%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EProblem%20is%20it%20keeps%20coming%20back%20invalid%20username%20or%20password.%26nbsp%3B%20The%20account%20is%20right%20and%20permissions%20fine.%26nbsp%3B%20Network%20have%20confirm%20nothing%20is%20getting%20blocked%2C%20local%20firewall%20is%20off.%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20from%20the%20ExchangeSetup.log%3A%3C%2FP%3E%3CP%3E%3CEM%3E%5B09%2F25%2F2020%2010%3A37%3A46.0346%5D%20%5B0%5D%20Finished%20loading%20screen%20HybridConfigurationStatusPage.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%5B09%2F25%2F2020%2010%3A37%3A47.0867%5D%20%5B0%5D%20Finished%20loading%20screen%20HybridConfigurationCredentialPage.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%5B09%2F25%2F2020%2010%3A45%3A39.0576%5D%20%5B0%5D%20Starting%20hybrid%20configuration%20checks...%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%5B09%2F25%2F2020%2010%3A45%3A39.0576%5D%20%5B0%5D%20Running%20the%20Office%20365%20tenant%20hybrid%20test.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%5B09%2F25%2F2020%2010%3A45%3A39.0576%5D%20%5B0%5D%20The%20hybrid%20detection%20engine%20will%20try%20to%20connect%20to%20Office%20365%20using%20the%20provided%20tenant%20credentials%20to%20run%20the%20Get-OrganizationConfig%20cmdlet.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%5B09%2F25%2F2020%2010%3A45%3A39.0576%5D%20%5B0%5D%20Opening%20runspace%20to%20%3CA%20href%3D%22https%3A%2F%2Fps.outlook.com%2Fpowershell-liveid%3FserializationLevel%3DFull%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fps.outlook.com%2Fpowershell-liveid%3FserializationLevel%3DFull%3C%2FA%3E.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%5B09%2F25%2F2020%2010%3A45%3A39.0748%5D%20%5B0%5D%20Session%3DTenant%20Total%20Cmdlet%20Time%3D0s%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%5B09%2F25%2F2020%2010%3A45%3A39.0748%5D%20%5B0%5D%20Microsoft.Exchange.Management.Deployment.HybridConfigurationDetection.HybridConfigurationDetectionException%3A%20The%20username%20or%20password%20is%20invalid.%20---%26gt%3B%20System.Management.Automation.Remoting.PSRemotingTransportException%3A%20Connecting%20to%20remote%20server%20ps.outlook.com%20failed%20with%20the%20following%20error%20message%20%3A%26nbsp%3B%20For%20more%20information%2C%20see%20the%20about_Remote_Troubleshooting%20Help%20topic.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%26nbsp%3B%20%26nbsp%3Bat%20System.Management.Automation.Runspaces.AsyncResult.EndInvoke()%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%26nbsp%3B%20%26nbsp%3Bat%20System.Management.Automation.Runspaces.Internal.RunspacePoolInternal.EndOpen(IAsyncResult%20asyncResult)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%26nbsp%3B%20%26nbsp%3Bat%20System.Management.Automation.RemoteRunspace.Open()%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%26nbsp%3B%20%26nbsp%3Bat%20Microsoft.Exchange.Management.Deployment.HybridConfigurationDetection.RemotePowershellSession.Connect(PSCredential%20credentials%2C%20CultureInfo%20sessionUiCulture)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%26nbsp%3B%20%26nbsp%3Bat%20Microsoft.Exchange.Management.Deployment.HybridConfigurationDetection.HybridConfigurationDetection.RunTenantHybridTest(PSCredential%20psCredential%2C%20String%20organizationConfigHash)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%26nbsp%3B%20%26nbsp%3B---%20End%20of%20inner%20exception%20stack%20trace%20---%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%26nbsp%3B%20%26nbsp%3Bat%20Microsoft.Exchange.Management.Deployment.HybridConfigurationDetection.HybridConfigurationDetection.RunTenantHybridTest(PSCredential%20psCredential%2C%20String%20organizationConfigHash)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%26nbsp%3B%20%26nbsp%3Bat%20Microsoft.Exchange.Setup.GUI.HybridConfigurationStatusPage.StartHybridTest()%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E%5B09%2F25%2F2020%2010%3A45%3A39.0779%5D%20%5B0%5D%20Finished%20loading%20screen%20HybridConfigurationStatusPage.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyone%20got%20any%20ideas%20on%20what%20to%20do%20next%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1713511%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E2016%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%20Server%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ehybrid%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1717519%22%20slang%3D%22en-US%22%3ERe%3A%20Exchange%202016%20Install%20-%20Hybrid%20Deployment%20Check%20-%20The%20username%20or%20password%20is%20invalid%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1717519%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F357999%22%20target%3D%22_blank%22%3E%40SaintsDT%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20the%20looks%20of%20it%2C%20it%20appears%20that%20the%20setup%20is%20trying%20to%20connect%20to%20office%20365%20via%20powershell%2C%20I%20am%20not%20sure%20if%20the%20setup%20supports%20MFA%2C%20so%20check%20if%20your%20account%20is%20MFA%20enabled%2C%20try%20creating%20an%20app%20password%20and%20see%20if%20that%20works.%20Also%20from%20the%20new%20server%20try%20to%20connect%20to%20exchange%20online%20via%20powershell.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1719995%22%20slang%3D%22en-US%22%3ERe%3A%20Exchange%202016%20Install%20-%20Hybrid%20Deployment%20Check%20-%20The%20username%20or%20password%20is%20invalid%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1719995%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F67895%22%20target%3D%22_blank%22%3E%40harveer%20singh%3C%2FA%3E%26nbsp%3B.%26nbsp%3B%20Managed%20to%20find%20the%20answer.%26nbsp%3B%20Was%20to%20run%26nbsp%3B%3C%2FP%3E%3CPRE%3ESetup.exe%20%2FPrepareAD%20%2FTenantOrganizationConfig%20MyTenantOrganizationConfig.xml%20%2FIAcceptExchangeServerLicenseTerms%20%3C%2FPRE%3E%3CP%3EThanks%20for%20your%20help%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi,

We have exchange 2010 with Exchange Online in hybrid mode.  We are trying to install Exchange 2016 CU18 on a new server, on the setup we are getting prompted to enter a user name and password to connect to Office365:

 

Untitled.png

 

 

 

Problem is it keeps coming back invalid username or password.  The account is right and permissions fine.  Network have confirm nothing is getting blocked, local firewall is off. 

This is from the ExchangeSetup.log:

[09/25/2020 10:37:46.0346] [0] Finished loading screen HybridConfigurationStatusPage.
[09/25/2020 10:37:47.0867] [0] Finished loading screen HybridConfigurationCredentialPage.
[09/25/2020 10:45:39.0576] [0] Starting hybrid configuration checks...
[09/25/2020 10:45:39.0576] [0] Running the Office 365 tenant hybrid test.
[09/25/2020 10:45:39.0576] [0] The hybrid detection engine will try to connect to Office 365 using the provided tenant credentials to run the Get-OrganizationConfig cmdlet.
[09/25/2020 10:45:39.0576] [0] Opening runspace to https://ps.outlook.com/powershell-liveid?serializationLevel=Full.
[09/25/2020 10:45:39.0748] [0] Session=Tenant Total Cmdlet Time=0s
[09/25/2020 10:45:39.0748] [0] Microsoft.Exchange.Management.Deployment.HybridConfigurationDetection.HybridConfigurationDetectionException: The username or password is invalid. ---> System.Management.Automation.Remoting.PSRemotingTransportException: Connecting to remote server ps.outlook.com failed with the following error message :  For more information, see the about_Remote_Troubleshooting Help topic.
   at System.Management.Automation.Runspaces.AsyncResult.EndInvoke()
   at System.Management.Automation.Runspaces.Internal.RunspacePoolInternal.EndOpen(IAsyncResult asyncResult)
   at System.Management.Automation.RemoteRunspace.Open()
   at Microsoft.Exchange.Management.Deployment.HybridConfigurationDetection.RemotePowershellSession.Connect(PSCredential credentials, CultureInfo sessionUiCulture)
   at Microsoft.Exchange.Management.Deployment.HybridConfigurationDetection.HybridConfigurationDetection.RunTenantHybridTest(PSCredential psCredential, String organizationConfigHash)
   --- End of inner exception stack trace ---
   at Microsoft.Exchange.Management.Deployment.HybridConfigurationDetection.HybridConfigurationDetection.RunTenantHybridTest(PSCredential psCredential, String organizationConfigHash)
   at Microsoft.Exchange.Setup.GUI.HybridConfigurationStatusPage.StartHybridTest()
[09/25/2020 10:45:39.0779] [0] Finished loading screen HybridConfigurationStatusPage.

 

Anyone got any ideas on what to do next?

3 Replies
Highlighted

Hello @SaintsDT,

 

From the looks of it, it appears that the setup is trying to connect to office 365 via powershell, I am not sure if the setup supports MFA, so check if your account is MFA enabled, try creating an app password and see if that works. Also from the new server try to connect to exchange online via powershell, Also, try to use a .onmicrosoft account. 

 

Thanks

Highlighted

@harveer singh .  Managed to find the answer.  Was to run 

Setup.exe /PrepareAD /TenantOrganizationConfig MyTenantOrganizationConfig.xml /IAcceptExchangeServerLicenseTerms 

Thanks for your help 

Highlighted