Powershell to Retrieve all Active Directory user Information

Powershell to Retrieve all Active Directory user Information

In Active Directory User account properties, we have some Customized Tabs(created by Developers, not from Microsoft Default Tabs)
I am running this command in Powershell to get the information of a user, but it does not retrieve all the information and none of the information from the Customized tab.

Get-ADUser -Identity Username -Properties *


Any Help ?

Thank you
jskfanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Adam BrownSr Solutions ArchitectCommented:
That should return any custom attributes that are stored in Active Directory. However, your developer may not have properly added the attributes on your custom tab to the Active Directory Schema and may have elected to store those attributes in some other way. Without seeing the tab and what it does, I could not say for certain, though. What you will want to do is open AD Users and Computers in advanced features view (go to View, select Advanced Features) then open a user and go to the attribute editor tab and look for anything that has a value that shows up on the custom tab. If nothing shows up on the Attribute Editor tab that shows up on the custom tab, then get-adusers will not be able to return those values on its own. You would need to use a custom script that makes calls to the application storing information for that additional tab (and smack your developers for not adding the attributes to Active Directory's Schema)
0
jskfanAuthor Commented:
The  filed in the Custom tab, shows in Attribute editor with its Value.
I wonder how come Get-ADuser command did ot retrieve it.
0
Adam BrownSr Solutions ArchitectCommented:
Are you running powershell in an Elevated permissions session (Run as administrator)? It's possible there are read permission limitations on the attributes that stop get-aduser from operating correctly. Normally, all users have read permission on all attributes in AD (security implications of that are a whole different subject), so get-aduser would always have permission to read them, but if the attributes themselves have been configured in AD so they only allow admins to read, you would have to run Powershell as an administrator for get-aduser to pull the data.
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Discover the Answer to Productive IT

Discover app within WatchGuard's Wi-Fi Cloud helps you optimize W-Fi user experience with the most complete set of visibility, troubleshooting, and network health features. Quickly pinpointing network problems will lead to more happy users and most importantly, productive IT.

jskfanAuthor Commented:
Wow, you answered right after I run Powershell with elevated Rights...
Now I can see other attributes
0
ITguy565Commented:
@jskfan


I don't agree with the way this was closed.. I think that your question was answered in the following link

https://www.experts-exchange.com/questions/29091841/Powershell-to-Retrieve-all-Active-Directory-user-Information.html#a42516590
0
Sara TeasdaleCommented:
I know you're looking for a script, but you don't really need one to get all of the AD users. Just go to Active Directory Users & Computers -> User OU. In the toolbar at the top there's an Export List option.

https://www.techrepublic.com/blog/data-center/two-powershell-scripts-for-retrieving-user-info-from-active-directory/
0
jskfanAuthor Commented:
Excellent
0
ITguy565Commented:
Thanks for changing that @jskfan
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.