Group-ObjectEvenly
SYNOPSIS
SYNTAX
SizeOfGroup
Group-ObjectEvenly -InputObject <Object[]> -SizeOfGroup <Int32> [-ProgressAction <ActionPreference>]
[<CommonParameters>]
NbrOfGroups
Group-ObjectEvenly -InputObject <Object[]> -NbrOfGroups <Int32> [-ProgressAction <ActionPreference>]
[<CommonParameters>]
DESCRIPTION
Function that splits a object array into groups of a specific number
EXAMPLES
EXAMPLE 1
Get-Process | Group-ObjectByAmount -Amount 5
This example collects all processes running and groups them in groups of five processes per object.
PARAMETERS
-InputObject
Defines the object array to split
Type: Object[]
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-SizeOfGroup
Defines the size of each group of objects
Type: Int32
Parameter Sets: SizeOfGroup
Aliases:
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-NbrOfGroups
Defines the number of groups should be created, the objects will be evenly distributed within the groups
Type: Int32
Parameter Sets: NbrOfGroups
Aliases:
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
System.Collections.ArrayList
NOTES
RELATED LINKS
EDIT THIS DOC
This page was auto-generated from the powershell command comment based help. To edit the content of this page, update the script file comment based help on github Github