some workstations returning the error code 1 if we try to deploy a package with a powershell step inside. That means powershell was not found.
But all workstations (windows 10) have powershell 5 and i'm able to run powershell if i type powershell into run or cmd on the workstation
I tried to update the path in the system environment with:
setx PSModulePath %SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\ /M
but nothing changed.
Workaround is to change the command line inside the package from
PowerShell.exe -NoLogo -NonInteractive -ExecutionPolicy Bypass
C:\windows\System32\WindowsPowerShell\v1.0\PowerShell.exe -NoLogo -NonInteractive -ExecutionPolicy Bypass
But that solution dosen't make me happy at all
Please sign in to leave a comment.