open ADUC and do the following.
Right-click Saved Queries and click the New-Query option Type in a name for your saved query, such as Find all Non expiring PW Users Click the Define Query button Under the Find drop-down list, select Custom Search Click the Advanced tab Type in (objectCategory=person)(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=65536) Click the OK button to save the custom entry, then click on the OK button to save the query Now you should see all users with the flage pw never expires
Click the Export List button from the top of the ADUC windows and save to txt file.