I have a script that gets group name and member information, but I want it to also retrieve domain,groupname,type, description,distingushedname, managedby, members, fullname, username and display name. I have added a get-user command (the last line) but dont know how to incorporate it to the working part of the script.
Get-ADGroup -Filter {GroupCategory -eq "Security" -and Name -like "*"}| %{
$Group = $_.Name
Get-ADGroupMember $Group | Select @{N="GroupName";E={$Group}},@{N="Member";E={$_.Name}}"
}| Export-Csv C:\Users\Desktop\AD\Report.csv -nti
Get-ADUser -Filter * -properties * | select fullname*, username*, disp*,distinguishedName*,GroupName,GroupCategory,Member