Change User Account Setting – PasswordNeverExpires
After running an audit, it was discovered that some user account passwords on the domain were set to never expire. A few meetings later the team decided to change this setting across the board. Below is the script that will target an Organizational Unit (OU) and adjust the setting for the user accounts in it.