![]() ![]() This command gets all the members of the Administrators group. Supply values for the following parameters: (Type !? for Help.)ĭistinguishedName : CN=Domain Admins,CN=Users,DC=Fabrikam,DC=com To specify a default naming context for an AD LDS environment, set the msDS-defaultNamingContext property of the Active Directory directory service agent object ( nTDSDSA) for the AD LDS instance.Įxamples Example 1: Get all members of a group PS C:\> Get-ADGroupMemberĬmdlet Get-ADGroupMember at command pipeline position 1 A default naming context or partition is defined for the AD LDS environment. ![]() The cmdlet is run from an Active Directory provider drive.If the Recursive parameter is specified, the cmdlet gets all members in the hierarchy of the group that do not contain child objects.įor example, if the group SaraDavisReports contains the user KarenToh and the group JohnSmithReports, and JohnSmithReports contains the user JoshPollock, then the cmdlet returns KarenToh and JoshPollock.įor Active Directory Lightweight Directory Services (AD LDS) environments, the Partition parameter must be specified except in the following two conditions: You can also specify the group by passing a group object through the pipeline.įor example, you can use the Get-ADGroup cmdlet to get a group object and then pass the object through the pipeline to the Get-ADGroupMember cmdlet. You can identify a group by its distinguished name, GUID, security identifier, or Security Account Manager (SAM) account name. ![]() The Identity parameter specifies the Active Directory group to access. Members can be users, groups, and computers. The Get-ADGroupMember cmdlet gets the members of an Active Directory group. In this article Syntax Get-ADGroup Member Gets the members of an Active Directory group. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |