Is there a comprehensive list of Active Directory attributes for use with Select-Object?

0
3
Asked By CuriousCat42 On

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

Answered By TechyTommy99 On

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.

DataDude88 -

Is there any downside to using the -Properties * option all the time? Wouldn’t that slow things down a bit, especially in larger environments?

ScriptGuru1 -

If you're looking to keep it neat, pipe it into '| select *' to filter the output to only what you need.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.