Get description of an AD user with PowerShell

落花浮王杯 提交于 2020-01-07 03:46:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!