I'm looking for a comprehensive list of all the attributes we can use with Select-Object for Active Directory. For example, I'm often interested in pulling details like a user's mobile numbers, job titles, direct reports, P.O. Box, country code, Object GUID, and so on. I usually end up googling for specific attributes, but it would be great to have a single source for everything. Is the list just the precise attribute names as they are?
1 Answer
You can simply use `Get-AdUser -Properties *` to retrieve all the properties for a user. It's pretty straightforward!
But is there a downside to using `-Properties *` all the time? I feel like it could impact performance, but how much of a difference does it really make?
Definitely, and if you want to make it cleaner, you can pipe it to `| select *` for better clarity.