Hi Henrik,
I suspect we will need to do more work on the Powershell Task in the next betas / releases if we can.
If you run the simple 2 line script attached (Write-Output & Throw - Rename from txt attached to ps1) either as a script through the powershell task and then as an Execute Task using Powershell.exe you will hopefully see what I mean (This is with Extended Debug Logging Off).
Basically what we want is a result from the PowerShell task as close to possible as if we executed that same script or commands outside of VisualCron / at a powershell command line.
This is why for us we do use this task for small powershell code snippets but any script is run through the execute task.
We are still seeing too much debugging / logging from VisualCron vs what our scripts / powershell code is actually doing, and its getting in the way of what we are trying to do via VisualCron.
You will note if we use a Throw in a Script it appears we lose the Write-Output Data ? (Does not appear in Output Standard or Output Error).
I think a lot of work has been done on this task, and we are very much appreciative of that. The changes today to allow us to control this somewhat with the Extended Debugging switch has helped in a number of spots with the current 7.7.6 version (assuming all goes well with the script or code).
What I am communicating is how we would like to see the product move, to have powershell code in Visualcron behave as close to "Native" as possible (understanding it is server based) so that what is tested in Powershell outside of VisualCron is the result in VisualCron.
This would allow us to put more in VisualCron and reduce even further the scripting that goes on outside of VisualCron.
If logging stays at this level, can we request a switch for this task that lets us switch
all the Visualcron Powershell task logging off and just give us what powershell returns ?
This also will allow us to make better use of the Powershell Task, in terms of as part of a larger job (with Loops, Conditions, Notifications etc) that make use of Powershell Output.
Many Thanks
K
Powershell_Test_Script.txt
(1kb) downloaded 49 time(s).
Edited by user
2015-10-01T02:58:17Z
|
Reason: Add PowerGUI Screen Print