-
Notifications
You must be signed in to change notification settings - Fork 8
Get ePOGroupMember
Returns members of a specified ePO group
Get-ePOGroupMember [-Group] <Object> [-Recurse] [<CommonParameters>]
This function returns an array of ePOComputer objects for each computer in the specified ePO group. If the `$Recurse` parameter is specified, then all subgroups are included in the search as well.
$GroupMembers = Get-ePOGroupMember -Group $Group
Get group members of a single group
$GroupMembers = Get-ePOGroup -Group 'Group1' | Get-ePOGroupMember
Get group members from a pipeline
$GroupMembers = Get-ePOGroup -Group 'Group1' | Get-ePOGroupMember -Recurse
Recursively get group members from a pipeline
Specifies the group we want to search for group members. This parameter can be provided as either:
* An ePOGroup object
* A group name
This parameter can be passed in from the pipeline
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Include members in all subgroups
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.