Forum Discussion

evandromalmsteen's avatar
evandromalmsteen
Brass Contributor
Jun 09, 2025

System Center Orchestrator 2019 - DefaultRunspace must be a LocalRunspace (Run Runbooks)

Hi guys,

Years ago, I deployed a System Center Orchestrator 2019 cluster with 2 SQL AlwaysOn nodes and 2 orchestrator servers in a Xen Server virtualization environment. I tested System Center 2025 with the 2019 Web API and encountered some bugs, so I decided not to proceed.

As we are now migrating from the Xen Server hypervisor to KVM, I deployed a new SC Orchestrator 2019 with RU6 using the latest ISO from VLSC: SW_DVD5_Sys_Ctr_DataCenter_Core_201925H1_MultiLang_-2_Orch_MLF_X24-03831, in the same scenario as before, with 2 SQL AlwaysOn and 2 SC Orchestrator servers 2019.

I simply exported all runbooks from the old environment to the new one. However, I am now encountering the following error when executing the same runbooks that work in the legacy environment, I'm using the latest version from IP 2019.

Has anyone encountered this issue before?

DefaultRunspace must be a LocalRunspace

Exception: InvalidOperationException
Target site: Runspace.set_DefaultRunspace

Stack trace:

at System.Management.Automation.Runspaces.Runspace.set_DefaultRunspace(Runspace value)

at SystemCenter.IntegrationPack.ExchangeAdmin.Gateway.Core.ExchangeGatewayBase.ExecuteScript(String script)

at SystemCenter.IntegrationPack.ExchangeAdmin.Domain.Core.RunPowerShellCommandHandler.ExecuteCommand(ActivityCommand command)

at SystemCenter.IntegrationPack.ExchangeAdmin.Domain.ExecuteContext.Execute(ActivityCommand command)

at SystemCenter.IntegrationPack.ExchangeAdmin.Activity.RunPowerShellCommandActivity.Execute(IActivityRequest request, IActivityResponse response)

# C:\ProgramData\Microsoft System Center 2012\Orchestrator\PolicyModule.exe\Logs

Process ID: 6256
Version : http://10.19.236.0/
Computer : SRVCORCH001
User : DOMAIN\scorchsvc

2025-06-09 14:43:05 [7520] 1 Name="Run Exchange Management Shell Cmdlet" ID={59A542C9-FBB
2025-06-09 14:43:12 [7520] 1 Name="Run Exchange Management Shell Cmdlet" ID={59A542C9-FBB6-4ABC-AAF1-0A0C8F992331} DefaultRunspace must be a LocalRunspace

Exception: InvalidOperationException
Target site: Runspace.set_DefaultRunspace

Stack trace:
at System.Management.Automation.Runspaces.Runspace.set_DefaultRunspace(Runspace value)
at SystemCenter.IntegrationPack.ExchangeAdmin.Gateway.Core.ExchangeGatewayBase.ExecuteScr

1 Reply

  • So,

    Answering my own question, this version of the IP is broken for those using SC Orch 2019.



    An older version already works without ptoblems.

     

Resources