Select-Object allows a subset of data to be returned when executing a command. This may be a more restrictive number of elements, or a smaller number of properties.
Sort-Object can be used to perform both simple and complex sorting.
Select-Object allows a subset of data to be returned when executing a command. This may be a more restrictive number of elements, or a smaller number of properties.
Sort-Object can be used to perform both simple and complex sorting.
Select-Object is most frequently used to limit values by a command. The command is extremely versatile as it enables you to do the following:
Get-Process | Select-Object -Property Name, Id
Get-Process | Select-Object -Property Name, *Memory
Get-Process | Select-Object -Property * -Exclude ...