Here is an example that generates a detailed listing of the “winword” and “explorer” processes as output Get-Process winword, explorer | Format-List * You can use the * wildcard to ensure that all information about the processes is displayed. To do this, you first use Get-Process to display an overview of the processes that you want to see, and then you use the pipe to pass this result to the Format-List cmdlet. You can also display more detailed information for individual processes that are not displayed in the aggregated list. In this way, processes can be effectively filtered and sorted for display. If you want to filter and sort processes by name and by resource consumption, for example, descending by CPU time, first type Get-Process s* and use Pipe to forward the result to Sort-Object with the option |Sort-Object cpu -Descending: Get-Process s*|Sort-Object cpu -Descending
Get-Process can sort processes not only alphabetically by name, but also, for example, based on their resource consumption. 1: By using filters, Get-Process not only lists processes, but also filters them.