I know I can use
Get-AdGroupMember "Name of group"
-Recursive| Select DistinguishedName
To find the nested groups, I want to use this with get-adgroup -filter * | sort name | select Name (realise this is pretty basic)
Want to pipe it to | export-csv C:\test.csv -NotypeInformation
Do I have to have the name of each group which is nested? Is there a handy way to do this? Thanks