< Back

Get-ActiveDirectoryGroupMember

Mon Jan 13, 2020 5:54 am

NAME Get-ActiveDirectoryGroupMember



SYNOPSIS

Get the members of an Active Directory group.





SYNTAX

Get-ActiveDirectoryGroupMember [-Identity] <String> [-Recurse] [[-Server] <String>] [<CommonParameters>]





DESCRIPTION

Get the members of an Active Directory group.





PARAMETERS

-Identity <String>

The group



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Recurse [<SwitchParameter>]

Recursive query



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Server <String>

The server



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-ActiveDirectoryGroupMember -Identity "Domain Admins" -Recurse



DistinguishedName Name

ObjectClass ObjectGUID



----------------- ----

----------- ----------



CN=InfrastructureAdmins,OU=SecurityGroups,DC=lab,DC=local InfrastructureAdmins

group

08ee2512-4ad1-4f60-8bca-5153cddccc47

CN=Administrator,CN=Users,DC=lab,DC=local Administrator

user 32ebb121-b479-4bab-8c1c-9e96997e2834









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-ADGroup "Domain Admins" | Get-ActiveDirectoryGroupMember -Recurse



DistinguishedName Name

ObjectClass ObjectGUID



----------------- ----

----------- ----------



CN=InfrastructureAdmins,OU=SecurityGroups,DC=lab,DC=local InfrastructureAdmins

group

08ee2512-4ad1-4f60-8bca-5153cddccc47

CN=Administrator,CN=Users,DC=lab,DC=local Administrator

user 32ebb121-b479-4bab-8c1c-9e96997e2834











RELATED LINKS