Script to determine accounts that have been inactive for 60 days in Windows 2000

Posted on 2006-05-18
Last Modified: 2010-04-13
Does anyone know of a script that will help me determine which user accounts in my Windows 2000 domain have been inactive for at least 60 days?  Thanks!
Question by:nailerpa
    LVL 20

    Accepted Solution

    I haven't tested this myself as I'm off site - however it's worth a look as it explains how you'd begin to go about it. DO NOT run the script for user account cleanup as it is unless you understand exactly what it's doing or have made amendments to it - it'll delete user accounts.
    Deb :)

    LVL 35

    Assisted Solution

    by:Nick Sui
    User accounts inactive for more than 60 days will be deleted automatically from domain provided TomStoneLifeTime value is set and Garbage collection process is enabled.

    By default both are enabled.

    So to answer you  - either you need to disable Garbase Collection process on Domain or run the script with minimum value set in it (less than 60 days).

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    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…
    In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
    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…

    745 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

    15 Experts available now in Live!

    Get 1:1 Help Now