1. Open PowerShell ISE → Run the following PowerShell script:
Import-Module ActiveDirectory Search-ADAccount -PasswordNeverExpires | Select-Object Name,ObjectClass,PasswordNeverExpires | Export-Csv c:\temp\ users_password_expiration_false.csv
2. Choose a location to save a .csv file.
0 comments:
Post a Comment