Solved

How to include additional properties on Powershell Get-QADUser

Posted on 2013-01-28
2
1,533 Views
Last Modified: 2013-01-28
My AD has been extended with custom attributes, and I find that I have to use -IncludeProperties or else the properties won't be returned on my query.

Get-QADUser 'john.doe' -IncludeProperties prop1,prop2 | Select Name,prop1,prop2

Open in new window


I'd like to make my custom attributes part of the default properties for the Get-QADUser cmdlet without having to use the -IncludeProperties switch, how do I do this?
Get-QADUser 'john.doe' | Select Name,prop1,prop2

Open in new window

0
Comment
Question by:bndit
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
bndit earned 0 total points
ID: 38829545
Ok, so I found the solution; you have to add these additional attributes to your profile

$attributes = Get-QADPSSnapinSettings -DefaultOutputPropertiesForUserObject
$attributes += 'prop1','prop2'

Set-QADPSSnapinSettings -DefaultOutputPropertiesForUserObject $attributes

Open in new window


Reference links:
http://fatbeards.blogspot.com/2010/09/wheres-my-attribute.html
http://technet.microsoft.com/en-us/library/ee692764.aspx
0
 
LVL 2

Author Closing Comment

by:bndit
ID: 38829547
Found my own solution
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
"Migrate" an SMTP relay receive connector to a new server using info from an old server.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 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

12 Experts available now in Live!

Get 1:1 Help Now