Skip to content

Get-ADSIPrincipalGroupMembership doesn't proivide DN #120

Description

@DennisL68

The available properties of Get-ADSIPrincipalGroupMembership is only name and description.
At the very least, DistinguishedName should be available as well as that's what's listed in the memberOf properties of AD Principals.

I.e. to get memberOf for a computer

((Get-ADSIComputer $Env:ComputerName).GetUnderlyingObject()).memberOf

If a lokup is done to find out properties, other good to have properties are

  • Sid
  • SamAccountName
  • DisplayName
  • Guid
  • UserPrincipalName

Why not include the actual Object alltogether?
That way you can also tell what kind of Principal object we are dealing with.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions