Can't execute CMD / Powershell scripts from Workflow project with errors
I doing a VMware deployment project of VM's from a workflow.
I have done some SQL integration to pull data from vCenter, so far so good.
The workflow generate a CMD file and save to disk with alot parameters to pass to a powershell script, which is executed from the workflow generated CMD file. Works fine. All is generated correctly.
I tried out the WF generated CMD to run it by hand, everything is working perfectly. The VM is deployed as it should be.
My problem is to execute this CMD file from workflow:
1 -I tried "Execute Batch" : Result PowerShell hangs in the of the script.
2 -Then tried "Execute Process and Wait" : Result script is running OK, but workflow throw an application error.
Standard Error has been checked and checked
Runned with cmd.exe / c ... and without
The CMD is a simple script:
PowerShell.exe - file c:....\NewVM.ps1 para1 para2 ..... para15
A simple thing, but giving a lot of grey hairs.
Can someone help me FAST, PLEASE.
Thanks in advance :o)