Author Posts

November 13, 2013 at 9:54 am

how do i get for each user in the group which i get from "Get-ADGroupMember", all the properties of the user which the "Get-ADGroupMember" dont return?

November 13, 2013 at 9:57 am

You would most likely use a Foreach loop to enumerate each user, and retrieve their full user object from the directory.

November 13, 2013 at 9:59 am

Pipe the resulting objects to Get-ADUser (though it's probably a good idea to make sure you're actually looking at a user object first), like so:

Get-ADGroupMember -Identity SomeGroup |
Where-Object { $_.objectClass -eq 'user' } |
Get-ADUser -Properties *

November 17, 2013 at 4:27 pm

While that may work 'ok', you may want to try to leverage Quest ActiveRoles plug-ins for PowerShell if AD Web Services is enabled or running in your environment.

Get-QADGroupMember 'Group Name' | Get-QADUser -IncludeAllProperties | Select-Object -Property *