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?
You would most likely use a Foreach loop to enumerate each user, and retrieve their full user object from the directory.
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 *
thanks Dave!
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 *