Forum Discussion
Diego13
Nov 09, 2022Copper Contributor
Get nested AD groups from bulk user or OU
Hi, I would like to export in a csv file all groups and nested groups from bulk AD user or OU. Example: Users Groups NestedGroups User1 Group1 NestedGroup1 ...
Diego13
Nov 14, 2022Copper Contributor
Hi,
I found this script who works well and the results are exactly what I need but I cannot export it in csv file because of "Tree view":
http://vcloud-lab.com/entries/active-directory/powershell-active-directory-show-treeview-of-user-or-group-memberof-hierarchy
Any idea to transform the output in csv file please ?
I found this script who works well and the results are exactly what I need but I cannot export it in csv file because of "Tree view":
http://vcloud-lab.com/entries/active-directory/powershell-active-directory-show-treeview-of-user-or-group-memberof-hierarchy
Any idea to transform the output in csv file please ?
Diego13
Nov 14, 2022Copper Contributor
https://github.com/kunaludapi/Powershell-Active-Directory--Show-treeview-of-User-or-Group-memberof-hierarchy
- Diego13Nov 22, 2022Copper ContributorHi,
Sorry for my late answer.
I cannot export as requested:
Example:
Users Groups NestedGroups
User1 Group1 NestedGroup1 NestedGroup2 NestedGroup3
Group2 NestedGroup1 NestedGroup2
Group3 NestedGroup1 NestedGroup2 NestedGroup3 NestedGroup4 NestedGroup5 NestedGroup6 NestedGroup7 NestedGroup8 NestedGroup9 NestedGroup10
Group4 NestedGroup1 NestedGroup2 NestedGroup3 NestedGroup4
Group5 NestedGroup1 NestedGroup2 NestedGroup3 NestedGroup4 NestedGroup5
User2 Group1 NestedGroup1 NestedGroup2 NestedGroup3
Group2 NestedGroup1 NestedGroup2
Group3 NestedGroup1 NestedGroup2 NestedGroup3 NestedGroup4 NestedGroup5 NestedGroup6 NestedGroup7 NestedGroup8 NestedGroup9 NestedGroup10
Group4 NestedGroup1 NestedGroup2 NestedGroup3 NestedGroup4
Group5 NestedGroup1 NestedGroup2 NestedGroup3 NestedGroup4 NestedGroup5
Thanks - Diego13Nov 14, 2022Copper ContributorThis is based from a group but I need by user ou by OU.
Any idea ? - Diego13Nov 14, 2022Copper ContributorThe script checks only 2 levels of nested groups as described:
" .DESCRIPTION
Gets a list of nested groups inside an Active Directory group using LDAPFilter. Checks for
two levels of nested groups from the parent group."
And this is from a group but I need by user ou by OU:
".SYNOPSIS
Gets a list of nested groups inside an Active Directory group"
Thanks.