Powershell Pipeline

    PowerShell Pipeline ( | ) :

    PowerShell pipeline tells PowerShell that you want to take the output of one command and pass it as the input (or pipe it) to the next command. Here we are passing complete objects. Using the pipe character (|), you can quickly and easily select objects and then perform an action on them.

    When you “pipe” objects, PowerShell tries to associate the piped objects with one of the parameters of the receiving cmdlet. In a simple language, piping is sending the objects in the output of one command to another command.

    Command-1 | Command-2 | Command-3

    Let’s look at an example:


    © 2020 WinAdmin.org, All Rights Reserved.

    We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.