Solved

Get-QADGroupMember and Include other Attributes

Posted on 2014-04-02
3
1,076 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Group policies can be applied selectively to specific devices with the help of groups. Utilising this, it is possible to phase-in group policies, over a period of time, by randomly adding non-members user or computers at a set interval, to a group f…
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

635 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