none
Orchestrator 2019 - Powershell Failover cluster module commands don't run in Orchestrator2019 but works in 2012 RRS feed

  • Question

  • I understand Orchestrator 2019 now runs an updated powershell. Great! A super simple get-clustergroup cannot be run for some reason, but it runs in Orchestrator 2012.

    super simple code below.
    Executed directly on the orchestrator server directly in powershell works.
    Executed in Orchestrator fails with get-clustergroup not a valid command
    Wrapping the code in $Results = Powershell {...} (as needed in Orchestrator 2012 and working) Fails in Orchestrator 2019.

    import-module C:\Windows\System32\WindowsPowerShell\v1.0\Modules\FailoverClusters\failoverclusters.psd1

    $clusterstatus =get-clustergroup-cluster"mycluster.domain.com"

    add-content c:\temp\temp.txt$clusterstatus

    How can I get this simple code to work, and possibly getting a workaround for other modules to work?

    Tuesday, September 10, 2019 6:53 PM

All replies