Skip to content

Small PowerShell Skript which shows AD-Group Memberships as a Tree of Users and Groups and traverses the List down recursively

License

Notifications You must be signed in to change notification settings

itsek/ADGroup-Tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

ADGroup-Tree

Small PowerShell Skript which shows AD-Group Memberships as a Tree of Users and Groups and traverses the List down recursively

Usage:
Just Pipe the Output of builtin Get-ADGroup CMDlet to this function
Get-ADGroup -Identity "testgroup" | ADGroup-Tree

Example-Output:
PS C:\Users\me\>Get-ADGroup -Identity "testgroup" | ADGroup-Tree
      |    Members of CN=testgroup,OU=Groups,DC=company,DC=local
      |--- User Clinton, Bill
      |--- User Dole, Bob
      |--- Group testgroup_sub1
           |    Members of CN=testgroup_sub1,OU=Groups,DC=company,DC=local
           |--- User Bush, George
           |--- User Simpson, Homer
           |--- Group testgroup_sub_sub1
                |    Members of CN=testgroup_sub_sub1,OU=Groups,DC=company,DC=local
                |--- User Dole, Bob
                |--- User Simpson, Bart
           |--- Group testgroup_sub_sub2
                |    Members of CN=testgroup_sub_sub2,OU=Groups,DC=company,DC=local
                |--- User Simpson, Lisa

About

Small PowerShell Skript which shows AD-Group Memberships as a Tree of Users and Groups and traverses the List down recursively

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published