File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed
reference/7.4/Microsoft.PowerShell.Utility Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,8 @@ Accept wildcard characters: False
161161# ## -GroupBy
162162
163163Formats the output in groups based on a shared property or value. Enter an expression or a property
164- of the output.
164+ of the output. The **GroupBy** parameter expects that the objects are sorted. Use the `Sort-Object`
165+ cmdlet before using `Format-Custom` to group the objects.
165166
166167The value of the **GroupBy** parameter can be a new calculated property. The calculated property can
167168be a script block or a hash table. Valid key-value pairs are :
Original file line number Diff line number Diff line change @@ -175,7 +175,8 @@ Accept wildcard characters: False
175175# ## -GroupBy
176176
177177Specifies the output in groups based on a shared property or value. Enter an expression or a
178- property of the output.
178+ property of the output. The **GroupBy** parameter expects that the objects are sorted. Use the
179+ ` Sort-Object` cmdlet before using `Format-List` to group the objects.
179180
180181The value of the **GroupBy** parameter can be a new calculated property. The calculated property can
181182be a script block or a hash table. Valid key-value pairs are :
@@ -315,9 +316,6 @@ verb (the `Out` cmdlets), such as `Out-Host` or `Out-File`.
315316If you do not use a format cmdlet, PowerShell applies that default format for each object that it
316317displays.
317318
318- The **GroupBy** parameter assumes that the objects are sorted. Use `Sort-Object` before using
319- ` Format-List` to group the objects.
320-
321319The **View** parameter lets you specify an alternate format for the table. You can use the views
322320defined in the `*.format.PS1XML` files in the PowerShell directory, or you can create your own views
323321in new PS1XML files and use the `Update-FormatData` cmdlet to include them in PowerShell.
Original file line number Diff line number Diff line change @@ -177,7 +177,8 @@ Accept wildcard characters: False
177177# ## -GroupBy
178178
179179Formats the output in groups based on a shared property or value. Enter an expression or a property
180- of the output.
180+ of the output. The **GroupBy** parameter expects that the objects are sorted. Use the `Sort-Object`
181+ cmdlet before using `Format-Wide` to group the objects.
181182
182183The value of the **GroupBy** parameter can be a new calculated property. The calculated property can
183184be a script block or a hash table. Valid key-value pairs are :
@@ -308,9 +309,6 @@ PowerShell includes the following aliases for `Format-Wide`:
308309- All platforms :
309310 - ` fw`
310311
311- The **GroupBy** parameter assumes that the objects are sorted. Use `Sort-Object` before using
312- ` Format-Custom` to group the objects.
313-
314312The **View** parameter lets you specify an alternate format for the table. You can use the views
315313defined in the `*.format.PS1XML` files in the PowerShell directory or you can create your own views
316314in new PS1XML files and use the `Update-FormatData` cmdlet to include them in PowerShell.
You can’t perform that action at this time.
0 commit comments