Re: Query Disabled Date
- From: "Joe Richards [MVP]" <humorexpress@xxxxxxxxxxx>
- Date: Sun, 03 Apr 2005 12:29:52 -0400
That is somewhat correct.
useraccountcontrol and 2 is correct for a disabled user, however the whenChanged value could reflect a change other than that disable operation. If someone wants to know for sure when useraccountcontrol was changed they need to look at metadata and even then, you won't know if the last change was the disable or something else to that attribute.
joe
-- Joe Richards Microsoft MVP Windows Server Directory Services www.joeware.net
Ato Bisda wrote:
You need to look at 2 fields: "userAccountControl" and "whenChanged"
A 0x2 in userAccountControl indicates a disabled account. "whenChanged" should tell you when the account was disabled.
"Kurt Levitan" <KL_OExpress@xxxxxxxxxx> wrote in message news:O1Eq9WgNFHA.2384@xxxxxxxxxxxxxxxxxxxxxxx
Is there a way to query when a user account was disabled? I need to generate a list of all accounts that were disabled over 30 days ago and then delete them.
Thanks! - Kurt
.
- References:
- Query Disabled Date
- From: Kurt Levitan
- Re: Query Disabled Date
- From: Ato Bisda
- Query Disabled Date
- Prev by Date: Re: Help!!! Domain Local Groups
- Next by Date: Re: Disabling and moving dead computers accounts
- Previous by thread: Re: Query Disabled Date
- Next by thread: AD 2003 migration and retire Win2k DCs
- Index(es):
Relevant Pages
|