Finding Users Whose Passwords Never Expire
Published: July 29, 2010
Updated: July 29, 2010
Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2008 R2 with SP1, Windows Server 7
This topic explains how to use the Active Directory module for Windows PowerShell to find users whose passwords never expire.
Example
The following example demonstrates how to find all the users whose passwords never expire:
Search-ADAccount -PasswordNeverExpires | FT Name,ObjectClass -A
Additional information
For a full explanation of the parameters that you can pass to Search-ADAccount, at the Active Directory module command prompt, type Get-Help Search-ADAccount –detailed, and then press ENTER.

