Windows

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Disable inactive accounts

    6 answers - 225 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi All,
    Kindly suggest a way out to disable incative user accounts in my
    domain. I have been given a task to automate disabling of domain user
    accouts not used past 4 weeks.
    Thanks
    RD
  • No.1 | | 295 bytes | |

    Ravi Dogra wrote:
    Hi All,
    Kindly suggest a way out to disable incative user accounts in my
    domain. I have been given a task to automate disabling of domain user
    accouts not used past 4 weeks.
    Check joe's oldcmp tool which can be used also to search for user accounts:
  • No.2 | | 557 bytes | |

    Also don't forget that the lastlogon flag is not replicated in pre SP1
    domain controllers.

    I had the same task and wrote a bit of vbscript to query all dc's in each
    domain for the "real" last logon date then I looked up the exchange last
    logon date and the ad creation date compared the lot and disabled any
    account that haven't logged in.

    Don't forget to exclude the service accounts and such. Also remember that
    the last logon only refuses to "interactive logons".

    Anyway my 0.02 worth.
  • No.3 | | 799 bytes | |

    I don't mind helping you, yes I have done exactly that! I think I already
    told you all that LL.
    Anyway, I have a script that was written by a guy in Microsoft that I used
    as my starting point.
    It evaluates the inactive accounts and then DELETES them if you want. You
    could mod it to set the disabled flag if you wanted instead of deleting.
    Would that be useful? Do you want me to mail it to you ?
    SEM

    11/18/05, Tomasz <t.onyszko (AT) w2k (DOT) plwrote:

    Ravi Dogra wrote:
    Hi All,

    Kindly suggest a way out to disable incative user accounts in my
    domain. I have been given a task to automate disabling of domain user
    accouts not used past 4 weeks.
    --
    Check joe's oldcmp tool which can be used also to search for user
    accounts:
  • No.4 | | 409 bytes | |

    I have Win2k3 servers with latest updates. i have no worry about that.

    Yes offcourse i will exclude service accounts and my external users
    from such list. i have some such clients too.

    But the thing is that how can i do this? Is there anyone who has
    succesfully automated the process of disabling inactive accounts.

    can any one help with that.

    Thanks
    RD

  • No.5 | | 77 bytes | |

    Joe tool is the best one.
    Thanks to tomasz and all.
  • No.6 | | 57 bytes | |

    yes sure. sem you can mail this to me.

Re: Disable inactive accounts


max 4000 letters.
Your nickname that display:
In order to stop the spam: 5 + 4 =
QUESTION ON "Windows"

EMSDN.COM