Hi!
I am trying to run a Powershell Script in a SSIS package -> Execute Process Task:
Invoke-Command -ComputerName TESTSERVER01 -FilePath "C:\PS_Scripts\createWebservice.ps1"
I tried also to put -ExecutePolicy ByPass at the Begin of obove mentioned command, unfortunately without succsess.
When I run the command directly from PS Command Console, it WORKS fine without any problems.
Details of the Execute Process Task:
Executable: C:\Windows\System32\WindowsPowershell\v1.0\powershell.exe
WorkingDirectory: C:\PS_Scripts
The only one error I get is:
Error: 0xC0029151 at Execute Process Task, Execute Process Task: In Executing ......... The process exit code was "1" while the expected was "0".
Your support will be highly appreciated.