问题
I'm trying to get the members of an AD group with this PS command:
Get-ADGroupMember -identity "GROUP_NAME" -Recursive
However I want to know the "Description" field for each AD user.
Is there a way to get this information?
Thanks.
回答1:
Try piping Get-ADGroupMember
to Get-ADUser
and specifying the Description property:
Get-ADGroupMember -Identity "GROUP_NAME" -Recursive |
Get-ADUser -Properties Description
来源:https://stackoverflow.com/questions/33948704/get-description-of-an-ad-user-with-powershell