PowerShell Pipe & Select

The pipe | as its called passes whatever data is to the left of the pipe and passes it to the right of the pipe. You can then further refine your output by using select or formatting it or even exporting it to text of CSV file formats.


Get-Service | Select Name, Status | Format-Table -AutoSize

As you can see in the example below the data pulled from Get-Service is passed using the pipe to the select statement and then passed again to the Where-Object and the final output is only the data of running services and the name and status.

2020 | Scott W. Head  |  Sr. Systems Admin | Certified Microsoft Windows Server Administrator