Tag pipeline
How to Use PipelineVariable
Put your hands up, have you ever bumped into the -PipelineVariable parameter in PowerShell cmdlets and wondered what it stood for? I have. But you use tab-completion when you are feeling lazy or want to get something done in a blink. Both these situations are not conductive to experimentation. What is a pipeline Think of cmdlets as little machine parts. Each takes an input, processes it and gives an output. You start with something raw, place it in the first machine, which processes it and gives you the output.
Piping Commands in PowerShell
We used the pipeline in our past posts. However, we did look into what they are and what they do. If you have had experience with Linux (or Bash in general), there is a good chance you know that the pipeline simply passes the output of a certain command to the command to its right. In this article, we discuss all about pipelines: Understanding the pipeline Using the pipeline to select properties Filtering the output based on a parameter How PowerShell outputs content Formatting the output Only in the end Wrapping up Understanding the pipeline Metaphorically speaking, think of a cmdlet as a machine.