Get-Adgroup member members properties

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of David Zemdegs David Zemdegs 7 months, 1 week ago.

  • Author
    Posts
  • #38549
    Profile photo of David Zemdegs
    David Zemdegs
    Participant

    Hi,
    get-adgroup returns two properties, 'member' and 'members', which appear to be the same. The 'member' property is the official schema one and 'members' appears to be derived. Does anyone know why the 'members' property was created when 'member' appears to contain exactly the same thing?

    Curious
    David Z

  • #38562
    Profile photo of Richard Siddaway
    Richard Siddaway
    Moderator

    I suspect because AD Users & Computers has a tab called Members on the group properties dialog as does AD Administrative Center. People are used to seeing Members rather than member

    If you look at. the 2 properties

    TypeName : Microsoft.ActiveDirectory.Management.ADGroup
    Name : member
    MemberType : Property
    Definition : Microsoft.ActiveDirectory.Management.ADPropertyValueCollection member {get;set;}

    TypeName : Microsoft.ActiveDirectory.Management.ADGroup
    Name : Members
    MemberType : Property
    Definition : Microsoft.ActiveDirectory.Management.ADPropertyValueCollection Members {get;}

    Notice that Members is read only but member is read/write

  • #38604
    Profile photo of David Zemdegs
    David Zemdegs
    Participant

    Thanks. For reading purposes they are exactly the same. It's what I thought.

You must be logged in to reply to this topic.