difference between lastLogon versus pwdLastSet

J

Joe Murphy

I'm polling AD for stale computer accounts using secdata.exe
(www.joeware.net) and several systems have a lastLogon date that precedes
pwdLastSet sometimes by several weeks/months.

How can the last time they account's password was reset be later than the
last logon? Don't you need to logon to reset the password? Am I reading this
wrong?

lastLogon
04/23/2004-15:00:25

pwdLastSet
06/04/2004-08:17:16

Thanks,
JM
 
G

Guest

Do you have more than one DC in your domain?

LastLogon is not a replicated attribute, hence the value you're looking at may not be the time the user last logged on.
 
J

Joe Murphy

Yes I do.

I was running secdata off of the main domain controller at our site.

Umit AKKUS said:
Do you have more than one DC in your domain?

LastLogon is not a replicated attribute, hence the value you're looking at
may not be the time the user last logged on.
 
J

Jerold Schulman

I'm polling AD for stale computer accounts using secdata.exe
(www.joeware.net) and several systems have a lastLogon date that precedes
pwdLastSet sometimes by several weeks/months.

How can the last time they account's password was reset be later than the
last logon? Don't you need to logon to reset the password? Am I reading this
wrong?

lastLogon
04/23/2004-15:00:25

pwdLastSet
06/04/2004-08:17:16

Thanks,
JM
Check LastLogonTimeStanp instead. It is replicated.


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
J

Joe Richards [MVP]

lastLogon isn't a replicationed attribute.

lastLogonTimeStamp in 2K3 is, however it is still out by about 10 days unless
you update how frequently it updates AD. Not generally recommended.

pwdLastSet is replicated and up to date within the tolerance of your replication
topology, it is why oldcmp (also on the website) uses that value. You might want
to look at it as it produces a pretty nice report in various formats and can
disable/delete user/computer objects pretty handily.

joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top