I'm looking for a complete list of attributes we can fetch from Active Directory using Select-Object. Sometimes I need information like a user's mobile numbers, job titles, direct reports, P.O. Box, country code, Object GUID, etc. I usually end up googling the specific attribute I want, but I was wondering if there's just one full list. Would that list contain the exact attribute names as they are in AD?
1 Answer
For your needs, you can use the command: Get-AdUser -Properties * to retrieve all attributes of a user. This will give you everything available for each user including mobile numbers, job titles, and more.
If you're looking to keep it neat, pipe it into '| select *' to filter the output to only what you need.
Is there any downside to using the -Properties * option all the time? Wouldn’t that slow things down a bit, especially in larger environments?