How can you check user account information using scripts?

Posted on 2004-11-05
Last Modified: 2010-08-05
I want to check:

1.  When users last changed their passwords.
2.  Which users are required to change their passwords.
3.  Which accounts have not been used in 2 months.

Question by:ojfahoum

    Author Comment

    Sorry.  I forgot to mention we are using Active Directory.

    LVL 11

    Accepted Solution

    1.  no idea atm.
    2.  dsquery user domainroot -name * | dsget user -mustchpwd
    3.  dsquery user domainroot -inactive 8 -name * (8 is the Number of Weeks of inactivity)

    Author Comment

    Can you use these tools on W2K directory?    If so, do you know where I can get them?

    thanks for the help.
    LVL 11

    Expert Comment

    you can get them with Admin Pack for Windows 2003.
    It should be run on a Windows XP (or W2K3) and can be used against W2K and W2K3 Domains
    LVL 11

    Expert Comment

    thank you.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Suggested Solutions

    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    759 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

    10 Experts available now in Live!

    Get 1:1 Help Now