Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to include additional properties on Powershell Get-QADUser

Posted on 2013-01-28
2
Medium Priority
?
1,729 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
[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
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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Utilizing an array to gracefully append to a list of EmailAddresses
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

715 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