getting password expiration date for FGPP

All staff passwords are controlled by FGPP and we have set the system up to warn the users when their passwords are about to expire (10) days in advance). But staff tend to ignore that and we end up getting calls about their accounts not working. We end up wasting time check on if their account is locked and etc,,,

I see that powershell can give us the real password expiration date from FGPP. I'm not a powershell expert and most of the scripts I see online can only return 1 user at a time. Is there a script out that can return a list of users and their password expiration date?
iamuserAsked:
Who is Participating?
 
Will SzymkowskiSenior Solution ArchitectCommented:
You can use the following syntax below to achieve this.
Get-ADUser -filter {Enabled -eq $True -and PasswordNeverExpires -eq $False} –Properties Name, msDS-UserPasswordExpiryTimeComputed

Open in new window


Will.
0
 
iamuserAuthor Commented:
Sorry for late response but that was perfect thanks
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.