Re: How to display expired accounts
From: Ben Winzenz [Exchange MVP] (benwinzenz_at_NOSPAM.gardnerwhite.com)
Date: 02/12/04
- Next message: Denis McDowell [MSFT]: "Re: How do I disable Read Receipts in Exchange 2000"
- Previous message: john doe: "Re: 5.5 to 2000 migration"
- In reply to: Mary: "Re: How to display expired accounts"
- Next in thread: Mary: "Re: How to display expired accounts"
- Reply: Mary: "Re: How to display expired accounts"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 12 Feb 2004 14:37:48 -0500
D'oh! I guess that was one of the enhancements with the Server 2003 admin
tools. :-)
As far as what you are wanting, I think I found something that may help.
There is a property field for objects called accountexpires. The problem is
that if you try and export that with ldifde or csvde, the field is stored as
an Integer8 syntax, which will come out as a very large number. Still, you
can export that field using the following syntax using LDIFDE.
ldifde -f filename -r
(&(objectclass=user)(!accountexpires=0)(!accountexpires=9223372036854775807)
)"
This should return an ldif file that only contains accounts which are
expired. The reason the second field is that apparently in AD, non-expired
accounts will either have a value of 0, or a very large value that does not
correspond to a valid date. Anyways, after you do the export, the
folllowing link may be able to help you convert the integer8 data to a
readable date format. It looks like it even may do a query for you instead
of needing to use Ldifde or csvde. I'm not great with scripting, so I
haven't played with this at all.
http://www.rlmueller.net/Integer8Attributes.htm
Hope this helps.
-- Ben Winzenz MVP - Exchange Network Engineer Gardner & White http://www.techtidbits.net Exchange FAQ's: http://www.swinc.com/resource/exch_faq.htm Exchange 2000 FAQ's: http://www.swinc.com/resource/e2kfaq.htm "Mary" <mccato@charter.net> wrote in message news:uHTYZfZ8DHA.2924@tk2msftngp13.phx.gbl... > Thanks for your reply, Ben. > > Disabled accounts would be good, too; but I do need to be able to see > accounts that have expired. We set accounts to expire on a certain date > sometimes; and it surely would be nice to be able to see those! > > I don't have "common queries" on my Find menu. Is there something I can do > to add it? > > Thanks! > Mary > > > "Ben Winzenz [Exchange MVP]" <benwinzenz@NOSPAM.gardnerwhite.com> wrote in > message news:uf7dkcZ8DHA.452@TK2MSFTNGP11.phx.gbl... > > I am assuming you mean disabled accounts? If so, from within AD U&C, > > right-click on your domain, then choose Find. Under the Find drop-down > > menu, choose Common queries. Then you will see a checkbox for "disabled > > accounts". Simply select that and then hit Find now, and all disabled > > accounts in the domain will be displayed. > > > > -- > > Ben Winzenz > > MVP - Exchange > > Network Engineer > > Gardner & White > > http://www.techtidbits.net > > > > Exchange FAQ's: http://www.swinc.com/resource/exch_faq.htm > > Exchange 2000 FAQ's: http://www.swinc.com/resource/e2kfaq.htm > > > > "Mary" <mccato@charter.net> wrote in message > > news:uTd4eWZ8DHA.3008@TK2MSFTNGP09.phx.gbl... > > > How can I display only expired accounts in ADUC? > > > > > > Thanks, > > > Mary > > > > > > > > > > > >
- Next message: Denis McDowell [MSFT]: "Re: How do I disable Read Receipts in Exchange 2000"
- Previous message: john doe: "Re: 5.5 to 2000 migration"
- In reply to: Mary: "Re: How to display expired accounts"
- Next in thread: Mary: "Re: How to display expired accounts"
- Reply: Mary: "Re: How to display expired accounts"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|