Does the Set-ADAccountControl cmdlet handle what you need?
Powershell script to update user account control using a csv file
Jeff Winningham
1
Reputation point
We are looking for a Powershell script to update user account control using a csv file. We have many users that are showing no password policy and need the attribute updates for user account control to correct this.