Need simple script to detect & disable inactive AD user accounts
- From: "Lanwench [MVP - Exchange]" <lanwench@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 10 Dec 2009 14:15:43 -0800
Hiya - for a W2003 (not R2) domain with two DCs, I'm being asked to
automatically disable user accounts that have not been used within x days.
This would be for one or two specific OUs only.
I've been looking around but haven't found much that looks like it will do
the trick. I'd like to run this script as a scheduled task once daily, and
I'd like it to output results & actions to a log (heck, as long as I'm at
it, I'd like it to output to the event log too. And I'd like a pony. But a
simple text log file will suffice).
Any ideas? I've poked around on the illustrious Mr. Mueller's site & on the
MS scripting site but I am not seeing anything that will do this...
.
- Follow-Ups:
- Re: Need simple script to detect & disable inactive AD user accounts
- From: Richard Mueller [MVP]
- Re: Need simple script to detect & disable inactive AD user accounts
- Prev by Date: Re: stop and start services unattendedly
- Next by Date: Re: Need simple script to detect & disable inactive AD user accounts
- Previous by thread: stop and start services unattendedly
- Next by thread: Re: Need simple script to detect & disable inactive AD user accounts
- Index(es):
Relevant Pages
|