Orchestrator Powershell

Lync 100 Reputation points
2023-08-20T17:58:16.2766667+00:00

I'm a new to MS Orchestrator and I'm currently attempting to use the PowerShell activity. However, I've encountered an issue when running the activity in the runbook. The error message return that the function doesn't exist. Curiously, when I execute the identical code within a PowerShell console, it functions as expected.

Could someone kindly clarify whether PowerShell function within an MS Orchestrator activity? Your guidance would be greatly appreciated.

System Center Orchestrator
System Center Orchestrator
A family of System Center products that provide an automation platform for orchestrating and integrating both Microsoft and non-Microsoft IT tools.
214 questions
0 comments No comments
{count} votes

Accepted answer
  1. Stefan Horz 3,461 Reputation points
    2023-08-21T06:39:04.2466667+00:00

    Hi,

    Runbooks executed with Runbook Server(s) with the logon account of the "Orchestrator Runbook Service". Perhaps the Powershell-Module with the cmdlet is not vailable on the Runbook Server or the locon account ($env:PSModulePath)?

    It will help to help you when you inform wich xersion of Orhestrator and which cmdlet you want to use, because:

    • Orchestrator Runbooks are executed with Windows PowerShell (Version 5.x) and not with PowerShell Core (Version 6.x and above).
    • In version 2016 and below of SC Orchestrartor: Runbooks are executed in 32bit environment and with Powershell Version 2.0 per default. You can force to use the latest Version in registry with with OnlyUseLatestCLR in path HKLM\SOFTWARE\Wow6432Node\Microsoft.NETFramework.
    • In version 2019 and below Runbooks are executed in 32bit enivronment. Perhaps you cmdlet ist only availbale for 64bit?

    Regards,

    Stefan

    0 comments No comments

0 additional answers

Sort by: Most helpful