Powershell AD group
To list the AD groups users detail. $nameofgroup= 'groupname' $groupsusers=Get-ADGroup -Identity $nameofgroup | ForEach-Object{ $settings=@{Group=$_.DistinguishedName;Member=$null} $_ | Get-ADGroupMember | ForEach-Object{ $settings.Member=$_.Name New-Object PsObject -Property $settings } } $groupsusers | Export-Csv $env:USERPROFILE\desktop\GroupsUsers.csv –NoTypeInformation --- Import-Module ActiveDirectory $Groups = (Get-AdGroup -filter * | Where {$_.name -like "**"} | select name -ExpandProperty name) $Table = @() $Record = @{ "Group Name" = "" ...