find and export user accounts with passwords set to never expire

c:\>Import-Module ActiveDirectory
c:\>Search-ADAccount -passwordneverexpires | export-csv c:\notexpires.csv

Advertisements