PowerShell Cmdlet Help for Select-Object
NAME
Select-Object
SYNOPSIS
Selects specified properties of an object or set of objects. It can also select unique objects from an array of obj
ects, or it can select a specified number of objects from the beginning or end of an array of objects.
SYNTAX
Select-Object [[-Property]
] [-ExcludeProperty ] [-ExpandProperty ] [-First ] [-In putObject ] [-Last ] [-Skip ] [-Unique] [] Select-Object [-Index ] [-InputObject ] [-Unique] [] DESCRIPTION The Select-Object cmdlet gets only the specified properties of an object or set of objects. It can also select uniq ue objects from an array of objects, or it can select a specified number of objects from the beginning or end of an array of objects. If you use Select-Object to select specified properties, it copies the values of those properties from the input ob jects and creates new objects that have the specified properties and copied values. Use the Property parameter to specify the properties you want to select. Or, use the First, Last, Unique, Skip, and Index parameters to select particular objects from an array of input objects. For more specific object filtering, use the Where-Object cmdlet. PARAMETERS -ExcludeProperty Removes the specifies properties from the selection. Wildcards are permitted. This parameter is effective only when the command also includes the Property parameter. The value of the property parameter can be a calculated property, which is a hash table that specifies a name a nd calculates a value for the property display. Valid keys are: -- Name or Label -- Expression or For more information, see the examples. Required? false Position? named Default value Accept pipeline input? false Accept wildcard characters? true -ExpandProperty Specifies a property to select, and indicates that an attempt should be made to expand that property. Wildcard s are permitted in the property name. For example, if the specified property is an array, each value of the array is included in the output. If the p roperty contains an object, the properties of that object are displayed in the output. Required? false Position? named Default value Accept pipeline input? false Accept wildcard characters? true -First Specifies the number of objects to select from the beginning of an array of input objects. Required? false Position? named Default value Accept pipeline input? false Accept wildcard characters? false -Index Selects objects from an array based on their index values. Enter the indexes in a comma-separated list. Indexes in an array begin with 0, where 0 represents the first value and (n-1) represents the last value. Required? false Position? named Default value None Accept pipeline input? false Accept wildcard characters? false -InputObject Specifies objects to send to the cmdlet through the pipeline. This parameter enables you to pipe objects to Sel ect-Object. Required? false Position? named Default value Accept pipeline input? true (ByValue) Accept wildcard characters? false -Last Specifies the number of objects to select from the end of an array of input objects. Required? false Position? named Default value Accept pipeline input? false Accept wildcard characters? false -Property Specifies the properties to select. Wildcards are permitted. The value of the Property parameter can be a new calculated property. To create a calculated, property, use a h ash table. Valid keys are: -- Name (or Label) -- Expression or