简体   繁体   中英

Get description of an AD user with PowerShell

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.

Try piping Get-ADGroupMember to Get-ADUser and specifying the Description property:

Get-ADGroupMember -Identity "GROUP_NAME" -Recursive | 
  Get-ADUser -Properties Description

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM