Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1223
  • Last Modified:

Get-QADGroupMember and Include other Attributes

I need to list all users of a Group, and include the Name, SamAccountName, EmployeeID, Manager

When I run Get-QADGroupMember "Group Name" | Name, SamAccountName, EmployeeID, Manager

It returns all values except the EmployeeID, how can I fix this?
0
fireguy1125
Asked:
fireguy1125
  • 2
1 Solution
 
SubsunCommented:
You can try..
Get-QADGroupMember "Group Name" -IncludedProperties employeeID | Select Name, SamAccountName, EmployeeID, Manager

Open in new window

or
Get-QADGroupMember "Group Name" | Get-Qaduser -IncludedProperties employeeID | Select Name, SamAccountName, EmployeeID, Manager

Open in new window

0
 
fireguy1125Author Commented:
Thanks - when listing the Manager, i see it returns the full DN value - is there any way to have the result so it is the name?
0
 
SubsunCommented:
You could create a custome property for that.. For example..
Get-QADGroupMember "Group Name" -IncludedProperties employeeID | Select Name, SamAccountName, EmployeeID,@{N="Manager";E={(Get-QadUser $_.Manager).DisplayName}}

Open in new window

0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now