Those zero's mean the value isn't set.
There are several requests for change for oldcmp asking for
an -onlyenabled switch. It is on the list and will go in when I work on it next.
In the meanwhile you can use
-bit -af
"(!(useraccountcontrol:AND:=2))"
Also if you want to filter out users/computers that don't
have a value set for the pwdLastSet or lastLogonTimeStamp, whichever is
currently being used, you can use the -realage switch.
I really need to open up that project and poke around, it
is getting long in the tooth, last update was December 2004, hard
to believe it has been out there for so long running so well for so many
people.
As a
side question, would anyone be terribly disappointed if the DHTML option went
away? Just trying to get a feel for it, I don't get much email on it so am
wondering if it is being used all that much. It seems in larger output files, IE
just gets torn up trying to display those files. Personally I think it is fun,
but if people aren't using it, it is a lot of code complexity for naught.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ramon Linan Sent: Friday, October 27, 2006 2:52 PM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] list lastlogontime for every user script Thanks Matt for the script that you sent and thanks Joe
for your tool.
I used Joe's tool (no sexual connotation here) because
it was easy and fast.
I have just one question, I am getting some users with
lastlogontimespamp 0000/00/00-00:00:00 most of them (or all of them) are system
users, like the systemmailbox. I bet this is because they never login into the
system.
This is the command that I used oldcmp -report -age 90
-users -llts
is there a way of excluding disabled users from the
results?
Thanks From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of joe Sent: Friday, October 27, 2006 12:40 AM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] list lastlogontime for every user script It isn't, it is randomly calculated every time logonTime is
updated.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, October 26, 2006 9:49 PM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] list lastlogontime for every user script How
is this 9-14 day value tracked for each user object, by the
way? From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of joe oldcmp Keep in
mind that by default, lastLogonTimeStamp is not updated every day, it will be
updated about every 9-14 days (14 days with a random swing of minus 0-5
days). You can
output to csv or html, whatever is more convenient for you.
Alternately
if you just want to query the value directly, you can use adfind to
generate the output. However,
oldcmp tends to be easier for most folks.
joe -- O'Reilly
Active Directory Third Edition - http://www.joeware.net/win/ad3e.htm From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Ramon Linan Hi, I am
trying to do an script or something that will list lastlogontime for all users
so I can receive an email when someone has not use the account for more than 30
days. I have
seen a couple of examples of half built scripts that don't work, I get lost when
they start dealing with the converting the number to a
date... Does
anyone has a script will do some similar? does Joe ware has something
similar? Thanks Ramon |
- RE: [ActiveDir... joe
- RE: [Activ... Marcus.Oh
- RE: [Activ... joe
- RE: [Activ... Marcus.Oh
- RE: [Activ... joe
- RE: [Activ... Ramon Linan
- RE: [Activ... Almeida Pinto, Jorge de
- Re: [Activ... Al Mulnick
- RE: [Activ... joe
- RE: [Activ... Akomolafe, Deji
- RE: [Activ... joe
- Re: [Activ... Al Mulnick
- [ActiveDir... Ramon Linan
- RE: [ActiveDir] Exchange Lo... Wells, James Arthur
- Re: [ActiveDir] Exchan... Albert Duro
- Re: [ActiveDir] Ex... Susan Bradley, CPA aka Ebitz - SBS Rocks [MVP]
- Re: [ActiveDir] Ex... Al Mulnick
- Re: [ActiveDir... Albert Duro
- Re: [Activ... Susan Bradley, CPA aka Ebitz - SBS Rocks [MVP]
- Re: [Activ... Al Mulnick
- Re: [Activ... Albert Duro