Active Directory User password getting expired

Hi,

I need to extract one report of users whos password is getting expired in few days is there any solution for the same.
yogesh mehtaAsked:
Who is Participating?
 
Niten KumarConnect With a Mentor Principal Systems AdministratorCommented:
Search by number of days
The following example demonstrates how to find all the users whose accounts are about to expire in the next 90 days:
Search-ADAccount -AccountExpiring -TimeSpan 90.00:00:00 | where {$_.ObjectClass -eq 'user'} | FT Name,ObjectClass –A

Open in new window


The PasswordExpiring option doesn't exist for the Search-ADAccount cmdlet on 2008 R2.
0
 
yogesh mehtaAuthor Commented:
tried this command but its not working
Search-ADAccount -PasswordExpiring -DateTime 10/15/2009 | where {$_.ObjectClass -eq 'user'} | FT Name,ObjectClass -A
0
 
David Johnson, CD, MVPOwnerCommented:
you can add the WMF framework to upgrade your powershell.. note password expiring is in DAYS.Hours:Minutes:Seconds
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.