"State of runspace is not valid for this operation" error message when you run the Hybrid Configuration wizard

Applies to: Exchange OnlineExchange Server 2013 EnterpriseExchange Server 2013 Standard Edition


You want to set up a hybrid deployment between your on-premises Exchange Server organization and Exchange Online in Office 365. However, when you run the Hybrid Configuration wizard, the wizard doesn't complete successfully. You receive a "State of runspace is not valid for this operation" error message. The full text of this message resembles the following:

ERROR:Updating hybrid configuration failed with error 'Subtask CheckPrereqs execution failed: Creating Organization Relationships.

Execution of the Get-FederatedOrganizationIdentifier cmdlet had thrown an exception. This may indicate invalid parameters in your Hybrid Configuration settings.

State of runspace is not valid for this operation.

Cannot perform operation because the runspace pool is not in the 'Opened' state. The current state is 'Broken'.
at System.Management.Automation.Runspaces.Internal.RunspacePoolInternal.AssertPoolIsOpen
at System.Management.Automation.Runspaces.RunspacePool.AssertPoolIsOpen
at System.Management.Automation.PowerShell.CoreInvokeAsync[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings, AsyncCallback callback, Object state, PSDataCollection`1 asyncResultOutput)


Follow the steps in the "Solution" section of the following Microsoft Knowledge Base article:If the problem persists, contact Microsoft Support and reference this Knowledge Base article.


If you experience issues with the Hybrid Configuration wizard, you can run the Exchange Hybrid Configuration Diagnostic. This diagnostic is an automated troubleshooting experience. Run it on the same server on which the Hybrid Configuration wizard failed. Doing this collects the Hybrid Configuration wizard logs and parses them for you. If you're experiencing a known issue, a message is displayed that tells you what went wrong. The message includes a link to an article that contains the solution. Currently, the diagnostic is supported only in Internet Explorer.

Still need help? Go to Microsoft Community or the Exchange TechNet Forums.