Solved

Get-QADGroupMember and Include other Attributes

Posted on 2014-04-02
3
898 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now