SCORCH 2019 32 bit Powershell

Theo Gordon 2 Reputation points
2022-08-09T11:22:38.553+00:00

Hey all,

I'm running SCORCH 2019 UR3 update.

When I use the .NET Script activity to run Powershell, SCORCH will now only run 32 bit Powershell. I've added the registry key fix for OnlyUseLatestCLR but it is still only running 32 bit Powershell.

Is there anyway to force SCORCH to use 64 bit Powershell instead?

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.
215 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,389 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Andreas Baumgarten 97,566 Reputation points MVP
    2022-08-09T12:48:49.273+00:00

    Hi @Hi @Anonymous ,

    the OnlyUseLatestCLR doesn't switch from 32-bit to 64-bit PowerShell version. The reg-key is forcing SCORCH to use the latest version, which is still a 32-bit PowerShell version.

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    1 person found this answer helpful.

  2. Andreas Baumgarten 97,566 Reputation points MVP
    2022-08-09T12:39:15.347+00:00

    Hi @Anonymous ,

    SCORCH 2019 will always start a 32-bit PowerShell if you use .NET Script activity.
    But you can start a 64-bit PowerShell from the 32-bit PowerShell ;-)
    https://www.miru.ch/how-to-execute-64-bit-powershell-scripts-in-system-center-orchestrator/

    It's the only workaround I am aware for SCORCH 2019.

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten


  3. Theo Gordon 2 Reputation points
    2022-08-09T12:42:18.663+00:00

    Hey @Andreas Baumgarten

    Thanks for the response. Does the previous workaround for this from SCORCH 2012 not work? This involved adding the Registry Key I mentioned in my initial comment.

    Cheers,
    Theo

    0 comments No comments