Hello,
I am relatively new to Powershell and having issues. I am attempting to find all users with passwordneverexpires set to true (who match other criteria like being enabled accounts, non service accounts, etc) and then change the setting to false. Attached is a script that I am trying to use to accomplish the task. I discovered that the set-aduser cmdlet does not accept pipeline input for passwordneverexpires. Is there another way to accomplish this. I would also like the accounts that were changed to be dumped into a csv file. Thanks for any assistance.