Home All Groups Group Topic Archive Search About

Automatically disable expired user accounts

Author
10 Feb 2006 11:59 PM
Richard
Hi.  Is it possible or is there a utility that will automatically disable a
user account after it has expired.  For example, disable the account after
30 days of expiration.  You comments are appreciated.  Thanks!

Author
11 Feb 2006 2:48 AM
Al Mulnick
I suspect a little more information would be helpful here.

If the account is expired, why do you want to disable it as well? Why not
delete it altogether?

Can you give more information about the flow you're trying to achieve?  This
sounds like an ID management detail, but...

Show quoteHide quote
"Richard" <rdu***@hotmail.com> wrote in message
news:uC4AL4pLGHA.140@TK2MSFTNGP12.phx.gbl...
> Hi.  Is it possible or is there a utility that will automatically disable
> a user account after it has expired.  For example, disable the account
> after 30 days of expiration.  You comments are appreciated.  Thanks!
>
>
>
Author
11 Feb 2006 2:51 AM
Cary Shultz
Look at oldcmp.  It is a utility from Joe Richards.  He might know a thing
or two about how AD works.  I might suggest that you go to his web site
(http://www.joeware.net) and download all of his utilities.

Now, the name of the utility is oldcmp.  That sounds suspiciously like
something for computers.  Well, it does handle computer account objects.  It
can also do user account objects.  You just need to change the default
filter from computers to users.

Also, adfind might help you.  I have yet to use that utility (well, if I
have it has been awhile!) but a lot of people swear by it.

--
Cary W. Shultz
Roanoke, VA  24012

Show quoteHide quote
"Richard" <rdu***@hotmail.com> wrote in message
news:uC4AL4pLGHA.140@TK2MSFTNGP12.phx.gbl...
> Hi.  Is it possible or is there a utility that will automatically disable
> a user account after it has expired.  For example, disable the account
> after 30 days of expiration.  You comments are appreciated.  Thanks!
>
>
>
Author
11 Feb 2006 6:45 PM
Joe Richards [MVP]
I **might** know a thing or two????

Yes oldcmp can be used here, to switch the filter you simply use the -users
switch. The name is unfortunate but the initial build of the app was simply to
manage old computers. The tool was such a runaway hit that people started asking
for it to handle users as well so I hacked it in there.

I am actually working on a completely new version called OldOBJ which will be
able to handle ANY objects with shortcuts for handling users, computers,
contacts, and groups. I intend for it to come in three flavors, OldOBJcli which
is command line, OldOBJgui which is GUI, and OldOBJsvc which will be a service.
None will be free like oldcmp though as there will be huge improvements in how
it does things including being multi-threaded and chasing across all DCs in the
domain as needed for info like lastLogon, etc.

   joe


--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

         http://www.joeware.net/win/ad3e.htm



Cary Shultz wrote:
Show quoteHide quote
> Look at oldcmp.  It is a utility from Joe Richards.  He might know a thing
> or two about how AD works.  I might suggest that you go to his web site
> (http://www.joeware.net) and download all of his utilities.
>
> Now, the name of the utility is oldcmp.  That sounds suspiciously like
> something for computers.  Well, it does handle computer account objects.  It
> can also do user account objects.  You just need to change the default
> filter from computers to users.
>
> Also, adfind might help you.  I have yet to use that utility (well, if I
> have it has been awhile!) but a lot of people swear by it.
>
Author
11 Feb 2006 7:23 PM
Cary Shultz
Yes,

Haven't you ever heard that saying?  When someone really knows pretty much
everything about a topic or subject someone else will say, "Yeah. I might
listen to him/her.  He/she might know a thing or two about xxxxxxxx".

Let us know when OldOBJ is finished.  I sure that there will be plenty of
people interested.  I know I will be!
--
Cary W. Shultz
Roanoke, VA  24012
Show quoteHide quote
"Joe Richards [MVP]" <humorexpr***@hotmail.com> wrote in message
news:uWjEPtzLGHA.3276@TK2MSFTNGP09.phx.gbl...
>I **might** know a thing or two????
>
> Yes oldcmp can be used here, to switch the filter you simply use
> the -users switch. The name is unfortunate but the initial build of the
> app was simply to manage old computers. The tool was such a runaway hit
> that people started asking for it to handle users as well so I hacked it
> in there.
>
> I am actually working on a completely new version called OldOBJ which will
> be able to handle ANY objects with shortcuts for handling users,
> computers, contacts, and groups. I intend for it to come in three flavors,
> OldOBJcli which is command line, OldOBJgui which is GUI, and OldOBJsvc
> which will be a service. None will be free like oldcmp though as there
> will be huge improvements in how it does things including being
> multi-threaded and chasing across all DCs in the domain as needed for info
> like lastLogon, etc.
>
>   joe
>
>
> --
> Joe Richards Microsoft MVP Windows Server Directory Services
> Author of O'Reilly Active Directory Third Edition
> www.joeware.net
>
>
> ---O'Reilly Active Directory Third Edition now available---
>
>         http://www.joeware.net/win/ad3e.htm
>
>
>
> Cary Shultz wrote:
>> Look at oldcmp.  It is a utility from Joe Richards.  He might know a
>> thing or two about how AD works.  I might suggest that you go to his web
>> site (http://www.joeware.net) and download all of his utilities.
>>
>> Now, the name of the utility is oldcmp.  That sounds suspiciously like
>> something for computers.  Well, it does handle computer account objects.
>> It can also do user account objects.  You just need to change the default
>> filter from computers to users.
>>
>> Also, adfind might help you.  I have yet to use that utility (well, if I
>> have it has been awhile!) but a lot of people swear by it.
>>
Author
14 Feb 2006 6:04 AM
richard
Thanks guys!  Will definitely try Joe's "oldcmp" tool and check out is
website as well.  To answer Al's question, it's hard to indentify in AD
which accounts have expired without going through the accounts.  AD doesn't
give any indicator unless the accounts are disabled.




Show quoteHide quote
"Cary Shultz" <cwshu***@mvps.org> wrote in message
news:%23Esm5C0LGHA.2416@TK2MSFTNGP15.phx.gbl...
> Yes,
>
> Haven't you ever heard that saying?  When someone really knows pretty much
> everything about a topic or subject someone else will say, "Yeah. I might
> listen to him/her.  He/she might know a thing or two about xxxxxxxx".
>
> Let us know when OldOBJ is finished.  I sure that there will be plenty of
> people interested.  I know I will be!
> --
> Cary W. Shultz
> Roanoke, VA  24012
> "Joe Richards [MVP]" <humorexpr***@hotmail.com> wrote in message
> news:uWjEPtzLGHA.3276@TK2MSFTNGP09.phx.gbl...
>>I **might** know a thing or two????
>>
>> Yes oldcmp can be used here, to switch the filter you simply use
>> the -users switch. The name is unfortunate but the initial build of the
>> app was simply to manage old computers. The tool was such a runaway hit
>> that people started asking for it to handle users as well so I hacked it
>> in there.
>>
>> I am actually working on a completely new version called OldOBJ which
>> will be able to handle ANY objects with shortcuts for handling users,
>> computers, contacts, and groups. I intend for it to come in three
>> flavors, OldOBJcli which is command line, OldOBJgui which is GUI, and
>> OldOBJsvc which will be a service. None will be free like oldcmp though
>> as there will be huge improvements in how it does things including being
>> multi-threaded and chasing across all DCs in the domain as needed for
>> info like lastLogon, etc.
>>
>>   joe
>>
>>
>> --
>> Joe Richards Microsoft MVP Windows Server Directory Services
>> Author of O'Reilly Active Directory Third Edition
>> www.joeware.net
>>
>>
>> ---O'Reilly Active Directory Third Edition now available---
>>
>>         http://www.joeware.net/win/ad3e.htm
>>
>>
>>
>> Cary Shultz wrote:
>>> Look at oldcmp.  It is a utility from Joe Richards.  He might know a
>>> thing or two about how AD works.  I might suggest that you go to his web
>>> site (http://www.joeware.net) and download all of his utilities.
>>>
>>> Now, the name of the utility is oldcmp.  That sounds suspiciously like
>>> something for computers.  Well, it does handle computer account objects.
>>> It can also do user account objects.  You just need to change the
>>> default filter from computers to users.
>>>
>>> Also, adfind might help you.  I have yet to use that utility (well, if I
>>> have it has been awhile!) but a lot of people swear by it.
>>>
>
>
Author
16 Feb 2006 1:59 AM
Al Mulnick
FYI:
http://www.joeware.net/win/free/tools/findexpacc.htm

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adschema/adschema/a_msds_user_account_control_computed.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ad/ad/user_object_user_interface_mapping.asp

http://www.rallenhome.com/books/adcookbook/src/06.26-find_users_about_to_expire.pls.txt

In case it helps.

Al


Show quoteHide quote
"richard" <rdu***@hotmail.com> wrote in message
news:eejgkySMGHA.2316@TK2MSFTNGP11.phx.gbl...
> Thanks guys!  Will definitely try Joe's "oldcmp" tool and check out is
> website as well.  To answer Al's question, it's hard to indentify in AD
> which accounts have expired without going through the accounts.  AD
> doesn't give any indicator unless the accounts are disabled.
>
>
>
>
> "Cary Shultz" <cwshu***@mvps.org> wrote in message
> news:%23Esm5C0LGHA.2416@TK2MSFTNGP15.phx.gbl...
>> Yes,
>>
>> Haven't you ever heard that saying?  When someone really knows pretty
>> much everything about a topic or subject someone else will say, "Yeah. I
>> might listen to him/her.  He/she might know a thing or two about
>> xxxxxxxx".
>>
>> Let us know when OldOBJ is finished.  I sure that there will be plenty of
>> people interested.  I know I will be!
>> --
>> Cary W. Shultz
>> Roanoke, VA  24012
>> "Joe Richards [MVP]" <humorexpr***@hotmail.com> wrote in message
>> news:uWjEPtzLGHA.3276@TK2MSFTNGP09.phx.gbl...
>>>I **might** know a thing or two????
>>>
>>> Yes oldcmp can be used here, to switch the filter you simply use
>>> the -users switch. The name is unfortunate but the initial build of the
>>> app was simply to manage old computers. The tool was such a runaway hit
>>> that people started asking for it to handle users as well so I hacked it
>>> in there.
>>>
>>> I am actually working on a completely new version called OldOBJ which
>>> will be able to handle ANY objects with shortcuts for handling users,
>>> computers, contacts, and groups. I intend for it to come in three
>>> flavors, OldOBJcli which is command line, OldOBJgui which is GUI, and
>>> OldOBJsvc which will be a service. None will be free like oldcmp though
>>> as there will be huge improvements in how it does things including being
>>> multi-threaded and chasing across all DCs in the domain as needed for
>>> info like lastLogon, etc.
>>>
>>>   joe
>>>
>>>
>>> --
>>> Joe Richards Microsoft MVP Windows Server Directory Services
>>> Author of O'Reilly Active Directory Third Edition
>>> www.joeware.net
>>>
>>>
>>> ---O'Reilly Active Directory Third Edition now available---
>>>
>>>         http://www.joeware.net/win/ad3e.htm
>>>
>>>
>>>
>>> Cary Shultz wrote:
>>>> Look at oldcmp.  It is a utility from Joe Richards.  He might know a
>>>> thing or two about how AD works.  I might suggest that you go to his
>>>> web site (http://www.joeware.net) and download all of his utilities.
>>>>
>>>> Now, the name of the utility is oldcmp.  That sounds suspiciously like
>>>> something for computers.  Well, it does handle computer account
>>>> objects. It can also do user account objects.  You just need to change
>>>> the default filter from computers to users.
>>>>
>>>> Also, adfind might help you.  I have yet to use that utility (well, if
>>>> I have it has been awhile!) but a lot of people swear by it.
>>>>
>>
>>
>
>
Author
11 Feb 2006 5:33 PM
Paul Bergson
Check out http://pbbergs.dynu.com/windows/downloads.htm

Download the script Active Directory User Account Attributes Download.  You
should be able to easily include the expired user accounts.  We sue it to
help with SOX.  We can detail user account creation and deletion as well as
last logon and password requirements.

--


Paul Bergson  MCT, MCSE, MCSA, CNE, CNA, CCA

This posting is provided "AS IS" with no warranties, and confers no rights.


Show quoteHide quote
"Richard" <rdu***@hotmail.com> wrote in message
news:uC4AL4pLGHA.140@TK2MSFTNGP12.phx.gbl...
> Hi.  Is it possible or is there a utility that will automatically disable
> a user account after it has expired.  For example, disable the account
> after 30 days of expiration.  You comments are appreciated.  Thanks!
>
>
>