The script I described a few weeks ago for finding all members of several groups is serving me very well indeed. I was recently asked to provide both the display name and the login name for each member in the group. This was readily achieved by modifying the script slightly. The rest of the script remains the same, so I will leave that well enough alone, and start with the following snippet: Get-ADGroupMember $Group -recursive | Get-ADUser -property Displayname | select Displayname
Tag: displayname
-
PowerShell: Return multiple specific properties