About 132,000 results
Open links in new tab
  1. ForEach-Object (Microsoft.PowerShell.Core) - PowerShell

    The ForEach-Object cmdlet performs an operation on each item in a collection of input objects. The input objects can be piped to the cmdlet or specified using the InputObject parameter.

  2. PowerShell ForEach-Object [With Examples]

    Jul 17, 2024 · Learn how to use PowerShell ForEach-Object with examples. Follow simple steps to iterate through collections and perform actions on each item efficiently.

  3. PowerShell ForEach-Object and ForEach Loop Explained

    Jan 11, 2024 · In this article, we are going to take a look at how to use PowerShell ForEach and ForEach-Object and explain the difference between the two. The PowerShell ForEach() and …

  4. ForEach-Object Cheat Sheet - ForEach-Object Command Line …

    Mar 1, 2025 · PowerShell’s ForEach-Object cmdlet is a core tool for processing each item in a collection as it flows through the pipeline. In this detailed guide, we will explore what ForEach …

  5. Difference between ForEach and ForEach-Object in powershell

    Mar 19, 2015 · When you are piping input into ForEach, it is the alias for ForEach-Object. But when you place ForEach at the beginning of the line, it is a Windows PowerShell statement. …

  6. ForEach-Object % - PowerShell - SS64.com

    ForEach-Object receives one object that represents the collection. Because one collection object cannot be processed, ForEach returns the entire collection unchanged. To process multiple …

  7. Mastering PowerShell Object Foreach for Efficient Scripting

    In PowerShell, the `ForEach-Object` cmdlet allows you to perform an operation on each item in a collection or array of objects, making it easy to process data elements efficiently in a pipeline.

  8. PowerShell foreach loops and ForEach-Object - Svendsen Tech …

    In PowerShell there's a keyword called foreach that's used for looping over collections such as arrays (technically pipelines). The cmdlet ForEach-Object is used for processing objects …

  9. Foreach vs Foreach-Object in PowerShell - SPGuides

    Mar 1, 2024 · In this PowerShell tutorial, we will explain everything about the Foreach vs Foreach-Object in PowerShell. Foreach refers to a loop structure within PowerShell that is designed to …

  10. PowerShell ForEach-Object Loop: Beginner's Guide

    Sep 17, 2025 · Learn how to use the ForEach loop and the ForEach-Object cmdlet to traverse all the items in a collection in PowerShell scripts with this guide!