Authored by: Support.com Tech Pro Team
How to Track Active Directory Users with Password Set to Never Expire
Start Windows PowerShell with administrative privileges. Run the following Windows PowerShell cmdlet to search Active Directory accounts that have passwords set to “never expireâ€.
search-adaccount –passwordneverexpires
Following screenshot shows the result of the command.
Above result set may have some disabled user accounts. To get the list of only active user accounts with never to expire passwords, run the following command.
search-adaccount –passwordneverexpires | where {$_. enabled}
Followng screenshot shows such a report.