Ensuring that PowerShell Script runs in "Run .Net Script" Activity

Bewertung:  / 2
SchwachSuper 
Erstellt am Montag, 31. August 2015 Geschrieben von Stefan Horz

As default "Run .Net Script" Activity executes 32bit PowerShell (x86) with Version 2.

If you want to ensure that your Script works with "Run .Net Script Activity" and you don't have forced "Run .Net Script" Activity to run the PowerShell-Version of Windows executing the Orchestrator Runbook Service you can ensure that your script works with  "Run .Net Script Activity" with:

powershell -version 2

PowerShell-Version2

But you can't sart ISE for PowerShell 2.0.