About 69 results
Open links in new tab
  1. What does "%" (percent) do in PowerShell? - Stack Overflow

    Technically it's an alias for ForEach-Object. ForEach is also an alias for ForEach-Object - except when used at the start of a statement, where it's a loop control keyword (like while).

  2. foreach - Running tasks parallel in powershell - Stack Overflow

    From : Describes the ForEach -Parallel language construct in Windows PowerShell Workflow. The -Parallel parameter doesn't exist if you're not using a workflow. I didn't get the feeling the OP is …

  3. Difference between ForEach and ForEach-Object in powershell

    Mar 19, 2015 · 31 foreach is an alias of ForEach-Object but it appears to also be a keyword (which is confusing). The foreach ($<item> in $<collection\>){<statement list>} syntax you are using is help …

  4. powershell - Using continue/return statement inside .ForEach () …

    Dec 15, 2023 · My questions: When the speed advantage of the .ForEach() method is too big to settle for foreach and you need to continue, what is the proper way to continue when using .ForEach({})? …

  5. PowerShell Make ForEach Loop Parallel - Stack Overflow

    Oct 29, 2023 · Because the ForEach-Object cmdlet is a type of command - as opposed to a language statement such as foreach (or an expression such as 'foo'.Length) - it is parsed in argument (parsing) …

  6. Powershell ForEach loop with embedded IF statements

    Powershell ForEach loop with embedded IF statements Asked 10 years, 6 months ago Modified 10 years, 6 months ago Viewed 28k times

  7. Powershell: Foreach not working? - Stack Overflow

    Powershell: Foreach not working? Asked 8 years, 7 months ago Modified 8 years, 7 months ago Viewed 8k times

  8. How do I properly use ForEach () statement of List?

    @GregorySuvalian List<T> have its own ForEach method. Because of this it is preferred over ForEach PowerShell adds to collections.

  9. How do I add an atomic counter to a powershell ForEach -Parallel loop

    Jan 26, 2023 · 7 In this question, it was explained how to add to a concurrent ThreadSafe collection Powershell: How to add Result to an Array (ForEach-Object -Parallel) I have a simpler use case , …

  10. Get index of current item in a PowerShell loop - Stack Overflow

    106 Given a list of items in PowerShell, how do I find the index of the current item from within a loop? For example: