We help IT Professionals succeed at work.

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?
Comment
Watch Question

Senior Solution Architect
Most Valuable Expert 2015
Top Expert 2015
Commented:
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.

Author

Commented:
Sorry for late response but that was perfect thanks