Hi, the steps are:
- Install PowerShell Core on the Runbook Server(s)
- Enable Remoting
- Invoke PowerShell with pwsh {#yourscript } in
$Result = pwsh {
$version=(get-host).Version
return $version
}2>&1
Regards, Stefan
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Do you know if I can use PS v7 instead of Microsoft PowerShell v5.1 in the script activity of SCORCH 2019?
Hi, the steps are:
$Result = pwsh {
$version=(get-host).Version
return $version
}2>&1
Regards, Stefan
Hi @carlos , there is a workaround to use PowerShell 7 with SCORCH: https://www.miru.ch/how-to-execute-64-bit-powershell-scripts-in-system-center-orchestrator/ Instead of the 64bit PowerShell executable you have to provide the exe of PowerShell v7 in the script followed by the scriptblock in curly brackets.
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten