Skip to content

Get ePOGroupMember

Michael Arranaga edited this page Aug 30, 2019 · 1 revision

external help file: ePOwerShell-help.xml Module Name: ePOwerShell online version: schema: 2.0.0

Get-ePOGroupMember

SYNOPSIS

Returns members of a specified ePO group

SYNTAX

Get-ePOGroupMember [-Group] <Object> [-Recurse] [<CommonParameters>]

DESCRIPTION

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.

EXAMPLES

EXAMPLE 1

$GroupMembers = Get-ePOGroupMember -Group $Group

Get group members of a single group

EXAMPLE 2

$GroupMembers = Get-ePOGroup -Group 'Group1' | Get-ePOGroupMember

Get group members from a pipeline

EXAMPLE 3

$GroupMembers = Get-ePOGroup -Group 'Group1' | Get-ePOGroupMember -Recurse

Recursively get group members from a pipeline

PARAMETERS

-Group

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

-Recurse

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

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

NOTES

RELATED LINKS