Link to home
Start Free TrialLog in
Avatar of IT Guy
IT GuyFlag for United States of America

asked on

PowerShell script to display AD user's password expiration dates

Please provide me with a Server 2016 PowerShell script to display each Active Directory user's password expiration date.

I need to run this command that will display a list of all Active Directory users and their AD password expiration dates without having to run this command on each individual AD account.
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of IT Guy

ASKER

These scripts both work very well; however they only display this info for the users who don't have the "Password never expires" checkbox selected.

What is the syntax for running this script so that this information will be displayed for all users who do have the "Password never expires" checkbox selected so I will know when these user's AD passwords will expire once the "Password never expires" checkbox is deselected?

I need to determine exactly when user's passwords will be expiring (or if they already have) before I deselect the AD "Password never expires" checkbox  for those users who have it selected.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial