Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 555
  • Last Modified:

List all Active users accounts

I need a way to pull a list of all active users email addresses in my win2003 AD. Can someone provide a tool or script to achieve this?

Thxs
0
KratosDefense
Asked:
KratosDefense
4 Solutions
 
ICaldwellCommented:
The following will help you with this:  http://windowsitpro.com/article/articleid/15063/how-can-i-create-a-list-of-all-user-accounts.html

It is very easy to accomplish.... hope this helps...
0
 
Donald StewartNetwork AdministratorCommented:
0
 
Joseph DalyCommented:
Using the ds series of tools this is very easy.

Im going to make an assumption here that by active you mean non disabled accounts? If so then this query will return what you are looking for.

dsquery * -filter (&(&(objectCategory=person)(objectClass=user)(!userAccountControl:1.2.840.113556.1.4.803:=2))) | dsget user -ln -fn -email >c:\output.txt


If by active you mean all user accounts in active directory then the query is even easier.

dsquery user -samid * | dsget user -ln -fn -email >c:\ouput.txt


If you have any questions on what I did, how to modify these for different values, etc let me know and ill explain.
0
 
AwinishCommented:
Try below Link.The script is attached in the end of the page.
 http://helpdeskgeek.com/how-to/how-to-get-e-mail-accounts-information-from-active-directory-using-a-script/
ADmanager is also a very good tool.
http://www.manageengine.com/products/ad-manager/ 
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Tackle projects and never again get stuck behind a technical roadblock.
Join Now