Solved

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

Posted on 2015-01-23
2
336 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
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now