SOLVED

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

%3CLINGO-SUB%20id%3D%22lingo-sub-1713550%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-1713550%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%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Untitled.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F222101i34897A2FE4C7FFC8%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Untitled.png%22%20alt%3D%22Untitled.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%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%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-1713550%22%20slang%3D%22en-US%22%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%3EOutlook%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1716526%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-1716526%22%20slang%3D%22en-US%22%3E%3CP%3E%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%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%20as%20you%20already%20have%20an%20Exchange%20Hybrid%2C%20you%20will%20need%20to%20include%20your%20tenantconfig%20details%20in%20the%20initial%20setup%20parameter%20as%20per%20the%20example%20below.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3ESetup.exe%20%2FPrepareAD%20%2FTenantOrganizationConfig%20MyTenantOrganizationConfig.xml%20%2FIAcceptExchangeServerLicenseTerms%20%3C%2FPRE%3E%3CP%3E%26nbsp%3BPlease%20refer%20to%20the%20following%20Microsoft%20link%20for%20further%20information.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-gb%2Fhelp%2F3121439%2Ferror-when-you-run-setup-prepareschema-to-prepare-the-schema-for-an-ex%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.microsoft.com%2Fen-gb%2Fhelp%2F3121439%2Ferror-when-you-run-setup-prepareschema-to-prepare-the-schema-for-an-ex%3C%2FA%3E%3C%2FP%3E%3CP%3E%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?

1 Reply
Highlighted
Best Response confirmed by SaintsDT (Occasional Contributor)
Solution

@SaintsDT 

 

Hi, as you already have an Exchange Hybrid, you will need to include your tenantconfig details in the initial setup parameter as per the example below.  

 

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

 Please refer to the following Microsoft link for further information.

 

https://support.microsoft.com/en-gb/help/3121439/error-when-you-run-setup-prepareschema-to-prepare-t...