Re: How to display expired accounts

From: Ben Winzenz [Exchange MVP] (benwinzenz_at_NOSPAM.gardnerwhite.com)
Date: 02/12/04


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
> > >
> > >
> >
> >
>
>


Relevant Pages

  • Sending email to mydomain.com
    ... They do not offer an smtp server, ... different from the user account names for the exchange ... I added one user account in the POP3 Mailbox Accounts ...
    (microsoft.public.windows.server.sbs)
  • Re: Critical e-mail problem.
    ... I upgraded from Win2K Server to WinSBS2003 on my desktop ... of my POP3 e-mail accounts as an Exchange Server account. ... I found that I was only receiving mail from the Exchange ... your Outlook profile will have Exchange as its default (and this ...
    (microsoft.public.windows.server.sbs)
  • Re: Critical e-mail problem.
    ... I upgraded from Win2K Server to WinSBS2003 on my desktop ... of my POP3 e-mail accounts as an Exchange Server account. ... I found that I was only receiving mail from the Exchange ... your Outlook profile will have Exchange as its default (and this ...
    (microsoft.public.windows.server.sbs)
  • Re: Problem with multiple access to one exchange email account
    ... The emails are hosted on the SBS exchange server using SMTP protocal. ... The users' Outlook accounts are connected by selecting exchange server ...
    (microsoft.public.windows.server.sbs)
  • Re: Problem with multiple access to one exchange email account
    ... The emails are hosted on the SBS exchange server using SMTP protocal. ... The users' Outlook accounts are connected by selecting exchange server ...
    (microsoft.public.windows.server.sbs)

Loading