Skip to content
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
22 changes: 15 additions & 7 deletions reference/5.1/Microsoft.PowerShell.Utility/Select-Object.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 01/18/2026
ms.date: 05/04/2026
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/select-object?view=powershell-5.1&WT.mc_id=ps-gethelp
schema: 2.0.0
aliases:
Expand Down Expand Up @@ -490,7 +490,9 @@ Accept wildcard characters: True

### -First

Specifies the number of objects to select from the beginning of an array of input objects.
Specifies the number of objects to select from the beginning of a collection of input objects. When
you use this parameter with the **Skip** parameter, `Select-Object` selects the first number of
objects after skipping the number of objects specified by **Skip**.

```yaml
Type: System.Int32
Expand Down Expand Up @@ -545,7 +547,9 @@ Accept wildcard characters: False

### -Last

Specifies the number of objects to select from the end of an array of input objects.
Specifies the number of objects to select from the end of a collection of input objects. If the
command uses the **Skip** parameter it skips items from the end of the collection, then returns the
last number of objects specified by the **Last** parameter after skipping.

```yaml
Type: System.Int32
Expand All @@ -571,7 +575,7 @@ property, use a hash table.
Valid keys are:

- Name (or Label) - `<string>`
- Expression - `<string>` or `<script block>`
- Expression - `<string>` or `<scriptblock>`

For more information, see
[about_Calculated_Properties](../Microsoft.PowerShell.Core/About/about_Calculated_Properties.md).
Expand All @@ -591,10 +595,14 @@ Accept wildcard characters: True
### -Skip

Skips (doesn't select) the specified number of items. By default, the **Skip** parameter counts from
the beginning of the collection of objects. If the command uses the **Last** parameter, it counts
from the end of the collection.
the beginning of the collection of objects. Unlike the **Index** parameter, which starts counting at
0, the **Skip** parameter begins at 1.

Unlike the **Index** parameter, which starts counting at 0, the **Skip** parameter begins at 1.
When you use this parameter with the **First** parameter, `Select-Object` selects the first number
of objects after skipping the number of objects specified by **Skip**.

If the command uses the **Last** parameter it skips items from the end of the collection, then
returns the last number of objects specified by the **Last** parameter after skipping.

```yaml
Type: System.Int32
Expand Down
20 changes: 14 additions & 6 deletions reference/7.4/Microsoft.PowerShell.Utility/Select-Object.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 01/18/2026
ms.date: 05/04/2026
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/select-object?view=powershell-7.4&WT.mc_id=ps-gethelp
schema: 2.0.0
aliases:
Expand Down Expand Up @@ -530,7 +530,9 @@ Accept wildcard characters: True

### -First

Specifies the number of objects to select from the beginning of an array of input objects.
Specifies the number of objects to select from the beginning of a collection of input objects. When
you use this parameter with the **Skip** parameter, `Select-Object` selects the first number of
objects after skipping the number of objects specified by **Skip**.

```yaml
Type: System.Int32
Expand Down Expand Up @@ -585,7 +587,9 @@ Accept wildcard characters: False

### -Last

Specifies the number of objects to select from the end of an array of input objects.
Specifies the number of objects to select from the end of a collection of input objects. If the
command uses the **Skip** parameter it skips items from the end of the collection, then returns the
last number of objects specified by the **Last** parameter after skipping.

```yaml
Type: System.Int32
Expand Down Expand Up @@ -631,10 +635,14 @@ Accept wildcard characters: True
### -Skip

Skips (doesn't select) the specified number of items. By default, the **Skip** parameter counts from
the beginning of the collection of objects. If the command uses the **Last** parameter, it counts
from the end of the collection.
the beginning of the collection of objects. Unlike the **Index** parameter, which starts counting at
0, the **Skip** parameter begins at 1.

Unlike the **Index** parameter, which starts counting at 0, the **Skip** parameter begins at 1.
When you use this parameter with the **First** parameter, `Select-Object` selects the first number
of objects after skipping the number of objects specified by **Skip**.

If the command uses the **Last** parameter it skips items from the end of the collection, then
returns the last number of objects specified by the **Last** parameter after skipping.

Beginning in PowerShell 7.4, you can use the **Skip** parameter with the **SkipLast** parameter to
skip items from both the beginning and end of the collection.
Expand Down
20 changes: 14 additions & 6 deletions reference/7.5/Microsoft.PowerShell.Utility/Select-Object.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 01/18/2026
ms.date: 05/04/2026
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/select-object?view=powershell-7.5&WT.mc_id=ps-gethelp
schema: 2.0.0
aliases:
Expand Down Expand Up @@ -530,7 +530,9 @@ Accept wildcard characters: True

### -First

Specifies the number of objects to select from the beginning of an array of input objects.
Specifies the number of objects to select from the beginning of a collection of input objects. When
you use this parameter with the **Skip** parameter, `Select-Object` selects the first number of
objects after skipping the number of objects specified by **Skip**.

```yaml
Type: System.Int32
Expand Down Expand Up @@ -585,7 +587,9 @@ Accept wildcard characters: False

### -Last

Specifies the number of objects to select from the end of an array of input objects.
Specifies the number of objects to select from the end of a collection of input objects. If the
command uses the **Skip** parameter it skips items from the end of the collection, then returns the
last number of objects specified by the **Last** parameter after skipping.

```yaml
Type: System.Int32
Expand Down Expand Up @@ -631,10 +635,14 @@ Accept wildcard characters: True
### -Skip

Skips (doesn't select) the specified number of items. By default, the **Skip** parameter counts from
the beginning of the collection of objects. If the command uses the **Last** parameter, it counts
from the end of the collection.
the beginning of the collection of objects. Unlike the **Index** parameter, which starts counting at
0, the **Skip** parameter begins at 1.

Unlike the **Index** parameter, which starts counting at 0, the **Skip** parameter begins at 1.
When you use this parameter with the **First** parameter, `Select-Object` selects the first number
of objects after skipping the number of objects specified by **Skip**.

If the command uses the **Last** parameter it skips items from the end of the collection, then
returns the last number of objects specified by the **Last** parameter after skipping.

Beginning in PowerShell 7.4, you can use the **Skip** parameter with the **SkipLast** parameter to
skip items from both the beginning and end of the collection.
Expand Down
20 changes: 14 additions & 6 deletions reference/7.6/Microsoft.PowerShell.Utility/Select-Object.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 01/18/2026
ms.date: 05/04/2026
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/select-object?view=powershell-7.6&WT.mc_id=ps-gethelp
schema: 2.0.0
aliases:
Expand Down Expand Up @@ -530,7 +530,9 @@ Accept wildcard characters: True

### -First

Specifies the number of objects to select from the beginning of an array of input objects.
Specifies the number of objects to select from the beginning of a collection of input objects. When
you use this parameter with the **Skip** parameter, `Select-Object` selects the first number of
objects after skipping the number of objects specified by **Skip**.

```yaml
Type: System.Int32
Expand Down Expand Up @@ -585,7 +587,9 @@ Accept wildcard characters: False

### -Last

Specifies the number of objects to select from the end of an array of input objects.
Specifies the number of objects to select from the end of a collection of input objects. If the
command uses the **Skip** parameter it skips items from the end of the collection, then returns the
last number of objects specified by the **Last** parameter after skipping.

```yaml
Type: System.Int32
Expand Down Expand Up @@ -631,10 +635,14 @@ Accept wildcard characters: True
### -Skip

Skips (doesn't select) the specified number of items. By default, the **Skip** parameter counts from
the beginning of the collection of objects. If the command uses the **Last** parameter, it counts
from the end of the collection.
the beginning of the collection of objects. Unlike the **Index** parameter, which starts counting at
0, the **Skip** parameter begins at 1.

Unlike the **Index** parameter, which starts counting at 0, the **Skip** parameter begins at 1.
When you use this parameter with the **First** parameter, `Select-Object` selects the first number
of objects after skipping the number of objects specified by **Skip**.

If the command uses the **Last** parameter it skips items from the end of the collection, then
returns the last number of objects specified by the **Last** parameter after skipping.

Beginning in PowerShell 7.4, you can use the **Skip** parameter with the **SkipLast** parameter to
skip items from both the beginning and end of the collection.
Expand Down
20 changes: 14 additions & 6 deletions reference/7.7/Microsoft.PowerShell.Utility/Select-Object.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 01/18/2026
ms.date: 05/04/2026
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/select-object?view=powershell-7.7&WT.mc_id=ps-gethelp
schema: 2.0.0
aliases:
Expand Down Expand Up @@ -530,7 +530,9 @@ Accept wildcard characters: True

### -First

Specifies the number of objects to select from the beginning of an array of input objects.
Specifies the number of objects to select from the beginning of a collection of input objects. When
you use this parameter with the **Skip** parameter, `Select-Object` selects the first number of
objects after skipping the number of objects specified by **Skip**.

```yaml
Type: System.Int32
Expand Down Expand Up @@ -585,7 +587,9 @@ Accept wildcard characters: False

### -Last

Specifies the number of objects to select from the end of an array of input objects.
Specifies the number of objects to select from the end of a collection of input objects. If the
command uses the **Skip** parameter it skips items from the end of the collection, then returns the
last number of objects specified by the **Last** parameter after skipping.

```yaml
Type: System.Int32
Expand Down Expand Up @@ -631,10 +635,14 @@ Accept wildcard characters: True
### -Skip

Skips (doesn't select) the specified number of items. By default, the **Skip** parameter counts from
the beginning of the collection of objects. If the command uses the **Last** parameter, it counts
from the end of the collection.
the beginning of the collection of objects. Unlike the **Index** parameter, which starts counting at
0, the **Skip** parameter begins at 1.

Unlike the **Index** parameter, which starts counting at 0, the **Skip** parameter begins at 1.
When you use this parameter with the **First** parameter, `Select-Object` selects the first number
of objects after skipping the number of objects specified by **Skip**.

If the command uses the **Last** parameter it skips items from the end of the collection, then
returns the last number of objects specified by the **Last** parameter after skipping.

Beginning in PowerShell 7.4, you can use the **Skip** parameter with the **SkipLast** parameter to
skip items from both the beginning and end of the collection.
Expand Down