Solved

List users that have changed their passwords within the last 90 days

Posted on 2015-01-23
2
515 Views
Last Modified: 2015-01-23
Hello,

Would it be possible to obtain a powershell\query to find out who has changed their password within the last 90 days? I run ADDS 2008R2.

Many thanks,
Alex.
0
Comment
Question by:ProjNet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 53

Accepted Solution

by:
Will Szymkowski earned 500 total points
ID: 40566665
Use the below script...

This code will give you days after 90 days
Import-module activedirectory
$date = get-date
Get-ADUser -Filter * -Properties PasswordLastSet | ? {$_.PasswordLastSet -lt $date.adddays(-90) } | select name,samaccountname, PasswordLastSet

Open in new window



This code will give you users between 90 days and today's date
Import-module activedirectory
$date = get-date
Get-ADUser -Filter * -Properties PasswordLastSet | ? {$_.PasswordLastSet -gt $date.adddays(-90) } | select name,samaccountname, PasswordLastSet

Open in new window


Will.
0
 

Author Closing Comment

by:ProjNet
ID: 40566804
Fantastic, just what I was after, thanks very much!
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question