Solved

Get-QADGroupMember and Include other Attributes

Posted on 2014-04-02
3
995 Views
Last Modified: 2014-04-09
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
Comment
Question by:fireguy1125
  • 2
3 Comments
 
LVL 40

Expert Comment

by:Subsun
ID: 39972789
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
 
LVL 1

Author Comment

by:fireguy1125
ID: 39972842
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
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
ID: 39974541
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
A brief introduction to what I consider to be the best editor for PowerShell.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question