Hello, dear coleagues.
As I know workflows are not executed in strict order. For example,
workflow Test-WFConnection { param( [string[]]$Computers ) foreach -parallel -ThrottleLimit 20 ($computer in $computers) { write-host "PC name: " $Computers } Test-WFConnection -Computers $Computers
Of course, you know that names of PCs will be output in console not in order they will input.
Quote from PowerShell Workflows: The Basics:
If you are running workflow activities in parallel there are no guarantees as to the order in which data will be returned.
You cannot assume that one piece of data will be returned before another.
That means, there is now way to dicrease time of execution, if you need to follow strict order?
Thanks.