Interviews1 answer
What does the pipeline (|) operator do in PowerShell?
1 Answer
The pipeline operator (|) is used to pass the output of one command directly as input to another command.
Get-Process | Where-Object { $_.CPU -gt 100 }
In this example, Get-Process retrieves all running processes, and Where-Object filters those processes to find any that are using more than 100 CPU units.
Jalpa DholaPosted Sep 24, 2024, 6:56 AM EDT
