Skip to content

Fix parameter's position in Select-Object.md #1945

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions reference/3.0/Microsoft.PowerShell.Utility/Select-Object.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ Selects objects or object properties.
## SYNTAX

### DefaultParameter (Default)
```
Select-Object [-InputObject <PSObject>] [[-Property] <Object[]>] [-ExcludeProperty <String[]>]
[-ExpandProperty <String>] [-Unique] [-Last <Int32>] [-First <Int32>] [-Skip <Int32>] [-Wait]
[<CommonParameters>]
```powershell
Select-Object [[-Property] <Object[]>] [-InputObject <PSObject>]
[-ExcludeProperty <String[]>] [-ExpandProperty <String>] [-Unique]
[-Last <Int32>] [-First <Int32>] [-Skip <Int32>] [-Wait] [<CommonParameters>]
```

### IndexParameter
```
Select-Object [-InputObject <PSObject>] [-Unique] [-Wait] [-Index <Int32[]>] [<CommonParameters>]
```powershell
Select-Object [-InputObject <PSObject>] [-Unique] [-Wait] [-Index <Int32[]>]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -279,7 +280,7 @@ Parameter Sets: DefaultParameter
Aliases:

Required: False
Position: 1
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
Expand Down
15 changes: 8 additions & 7 deletions reference/4.0/Microsoft.PowerShell.Utility/Select-Object.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ Selects objects or object properties.
## SYNTAX

### DefaultParameter (Default)
```
Select-Object [-InputObject <PSObject>] [[-Property] <Object[]>] [-ExcludeProperty <String[]>]
[-ExpandProperty <String>] [-Unique] [-Last <Int32>] [-First <Int32>] [-Skip <Int32>] [-Wait]
[<CommonParameters>]
```powershell
Select-Object [[-Property] <Object[]>] [-InputObject <PSObject>]
[-ExcludeProperty <String[]>] [-ExpandProperty <String>] [-Unique]
[-Last <Int32>] [-First <Int32>] [-Skip <Int32>] [-Wait] [<CommonParameters>]
```

### IndexParameter
```
Select-Object [-InputObject <PSObject>] [-Unique] [-Wait] [-Index <Int32[]>] [<CommonParameters>]
```powershell
Select-Object [-InputObject <PSObject>] [-Unique] [-Wait] [-Index <Int32[]>]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -290,7 +291,7 @@ Parameter Sets: DefaultParameter
Aliases:

Required: False
Position: 1
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
Expand Down
20 changes: 11 additions & 9 deletions reference/5.0/Microsoft.PowerShell.Utility/Select-Object.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,23 @@ Selects objects or object properties.
## SYNTAX

### DefaultParameter (Default)
```
Select-Object [-InputObject <PSObject>] [[-Property] <Object[]>] [-ExcludeProperty <String[]>]
[-ExpandProperty <String>] [-Unique] [-Last <Int32>] [-First <Int32>] [-Skip <Int32>] [-Wait]
[<CommonParameters>]
```powershell
Select-Object [[-Property] <Object[]>] [-InputObject <PSObject>]
[-ExcludeProperty <String[]>] [-ExpandProperty <String>] [-Unique]
[-Last <Int32>] [-First <Int32>] [-Skip <Int32>] [-Wait] [<CommonParameters>]
```

### SkipLastParameter
```
Select-Object [-InputObject <PSObject>] [[-Property] <Object[]>] [-ExcludeProperty <String[]>]
[-ExpandProperty <String>] [-Unique] [-SkipLast <Int32>] [<CommonParameters>]
```powershell
Select-Object [[-Property] <Object[]>] [-InputObject <PSObject>]
[-ExcludeProperty <String[]>] [-ExpandProperty <String>] [-Unique]
[-SkipLast <Int32>] [<CommonParameters>]
```

### IndexParameter
```
Select-Object [-InputObject <PSObject>] [-Unique] [-Wait] [-Index <Int32[]>] [<CommonParameters>]
```powershell
Select-Object [-InputObject <PSObject>] [-Unique] [-Wait] [-Index <Int32[]>]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down
20 changes: 11 additions & 9 deletions reference/5.1/Microsoft.PowerShell.Utility/Select-Object.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,23 @@ Selects objects or object properties.
## SYNTAX

### DefaultParameter (Default)
```
Select-Object [-InputObject <PSObject>] [[-Property] <Object[]>] [-ExcludeProperty <String[]>]
[-ExpandProperty <String>] [-Unique] [-Last <Int32>] [-First <Int32>] [-Skip <Int32>] [-Wait]
[<CommonParameters>]
```powershell
Select-Object [[-Property] <Object[]>] [-InputObject <PSObject>]
[-ExcludeProperty <String[]>] [-ExpandProperty <String>] [-Unique]
[-Last <Int32>] [-First <Int32>] [-Skip <Int32>] [-Wait] [<CommonParameters>]
```

### SkipLastParameter
```
Select-Object [-InputObject <PSObject>] [[-Property] <Object[]>] [-ExcludeProperty <String[]>]
[-ExpandProperty <String>] [-Unique] [-SkipLast <Int32>] [<CommonParameters>]
```powershell
Select-Object [[-Property] <Object[]>] [-InputObject <PSObject>]
[-ExcludeProperty <String[]>] [-ExpandProperty <String>] [-Unique]
[-SkipLast <Int32>] [<CommonParameters>]
```

### IndexParameter
```
Select-Object [-InputObject <PSObject>] [-Unique] [-Wait] [-Index <Int32[]>] [<CommonParameters>]
```powershell
Select-Object [-InputObject <PSObject>] [-Unique] [-Wait] [-Index <Int32[]>]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down
61 changes: 11 additions & 50 deletions reference/6/Microsoft.PowerShell.Utility/Select-Object.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ Selects objects or object properties.
## SYNTAX

### DefaultParameter (Default)
```
Select-Object [-InputObject <PSObject>] [[-Property] <Object[]>] [-ExcludeProperty <String[]>]
[-ExpandProperty <String>] [-Unique] [-Last <Int32>] [-First <Int32>] [-Skip <Int32>] [-Wait]
[-InformationAction <ActionPreference>] [-InformationVariable <String>] [<CommonParameters>]
```powershell
Select-Object [[-Property] <Object[]>] [-InputObject <PSObject>]
[-ExcludeProperty <String[]>] [-ExpandProperty <String>] [-Unique]
[-Last <Int32>] [-First <Int32>] [-Skip <Int32>] [-Wait] [<CommonParameters>]
```

### SkipLastParameter
```
Select-Object [-InputObject <PSObject>] [[-Property] <Object[]>] [-ExcludeProperty <String[]>]
[-ExpandProperty <String>] [-Unique] [-SkipLast <Int32>] [-InformationAction <ActionPreference>]
[-InformationVariable <String>] [<CommonParameters>]
```powershell
Select-Object [[-Property] <Object[]>] [-InputObject <PSObject>]
[-ExcludeProperty <String[]>] [-ExpandProperty <String>] [-Unique]
[-SkipLast <Int32>] [<CommonParameters>]
```

### IndexParameter
```
```powershell
Select-Object [-InputObject <PSObject>] [-Unique] [-Wait] [-Index <Int32[]>]
[-InformationAction <ActionPreference>] [-InformationVariable <String>] [<CommonParameters>]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -225,45 +225,6 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -InformationAction
The value of the property parameter can be a calculated property, which is a hash table that specifies a name and calculates a value for the property display. Valid keys are:

-- Name or Label <string>

-- Expression <string> or <scriptblock>

For more information, see the examples.```yaml
Type: ActionPreference
Parameter Sets: (All)
Aliases: infa
Accepted values: SilentlyContinue, Stop, Continue, Inquire, Ignore, Suspend

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -InformationVariable
The value of the property parameter can be a calculated property, which is a hash table that specifies a name and calculates a value for the property display. Valid keys are:

-- Name or Label <string>

-- Expression <string> or <scriptblock>

For more information, see the examples.```yaml
Type: String
Parameter Sets: (All)
Aliases: iv

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 **Select-Object**.
Expand Down Expand Up @@ -315,7 +276,7 @@ Parameter Sets: DefaultParameter, SkipLastParameter
Aliases:

Required: False
Position: 1
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand Down