Idea ID 1663592
Control with powershell exit or returncode
With powershell i want to have control with exitcode / returncode.
For example:
I have a flow with an external powershell call like
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -ExecutionPolicy Bypass -file ${Robotorium/PoSH/file.ps1-Server ${ARG-Servername}
I will use an powershell exit with errorcode to use further in the flow
I have tried more exit strategies within Powershell
- exit 1
- Return 1
- break
- throw #HPoo sees this as an error in the script.
I will catch the errorlevel in the flow, because i can use it for error-handling in the flow.
Something like
Errorlevel > 1 = error.
Errorlevel = 0, everything OK
Question:
Please create an option in HPoo to handle with this mechanism.
We are a automation team for our company.
Best regards,
Jack
- Labels:
-
OO-Content
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.