Selects objects based on parameters set in the cmdlet command string.
Snap-In: Microsoft.PowerShell.Utility
Syntax:
Select-Object [
[-Property] <Object[]>] [-InputObject <PSObject>] [-ExcludeProperty <String[]>] [-ExpandProperty <String>] [-Unique] [-Last <Int32>] [-First <Int32>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Description:
The Select-Object Cmdlet is a filter to select only certain objects to process or pass down the pipeline. It is most effectively used as a pipeline receiver from other Cmdlets such as get-service or get-process. The -First, -Last, and -Unique arguments select which objects to process. The cmdlet works with files, modules, registry keys, and other objects.