We help IT Professionals succeed at work.
Get Started

AD / Password Age / Password Last Set

Last Modified: 2012-06-21

I am trying to get a report of what date / time users last changed their passwords.  When I attempt to do this via VBScript using the PasswordLastChanged attribute in an LDAP object I get a response for every user object.  When I attempt to do this is PowerShell using the Quest cmdlet "get-qaduser -sizelimit 0 | select ntaccountname,passwordlastset" I get results for the majority of systems, but a few hundred do not have anything is the passwordlastset attribute.

Can anyone fill me in on why?  I would love to gather this info with the quest tool, so that I can include it in larger PowerShell scripts, but need complete information.

thank you.
Watch Question
PowerShell Developer
Top Expert 2010
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE