Need script to pull Active Directory account information.

Posted on 2007-08-10
Last Modified: 2013-12-14
I have been assigned the task of providing a machine-generated report on our 2003 domain with the following information:

Account names, descriptions (which we don't generally use), password parameters, and account status. They are not looking for screenshots. Is there a script I can run that will allow me to generate the requested report?

P.S. I'm not really sure what they mean by 'password parameters'. I assume they are referring to the domain password policies.
Question by:FIFBA
    LVL 30

    Expert Comment

    You can pull this information using any tool that is capable of querying Active Directory.  Two popular options are:


    ADFIND (far more flexible, but command-line only):

    Author Comment

    I was looking more for a vbscript or something like that...This is a financial institution with several hundred users...not really comfortable installing freeware. Any other ideas?
    LVL 30

    Expert Comment

    Erm, VBScript -is- freeware - you open up Notepad, you type away, you hit -Save-, you run the script.  :-)

    If you're looking for a paid reporting solution, there's more than you can shake a stick at - Quest and NetPro have competitive solutions, as does the DotNetFactory and any number of other partners.
    LVL 30

    Accepted Solution

    For examples of pulling AD account information using VBScript, any number of templates available here:

    Or here:

    Any can be customized depending on the exact information you're looking to pull.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    At some point in your work you may run into a need to globally assign a specific file type to open using a specific program. I recently was tasked with completing this objective. In my case it was setting the TSV file association to open with Excel.…
    Companies that have implemented Microsoft’s Active Directory need to ensure that the Active Directory is configured and operating properly. If there are issues found and not resolved, it eventually leads the components to fail or stop working and fi…
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
    This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now