Password Reset Local Account

carter_sema
New Contributor

Hi Everyone!

I wrote a quick two line shell script to reset passwords on logon, deployed through Casper Suite. Which works great... I want to take it to the next level. We use Active Directory (our mac's aren't bound) and I have a PowerShell Script that is going to send out daily or weekly password reminders to reset passwords and then dumps the names for who reset their password and who didn't reset their password into two separate CSV's

What I'm seeking advice or help on, is there a way to parse the CSV for who reset their passwords into the password reset script and have it only apply it for the users that are in the CSV for that particular day? Is there a better way to set this policy for only users that have completed their AD change?

Thanks!

Password Reset Script (mac)

#!/bin/sh
pwpolicy -u $3 -setpolicy "newPasswordRequired=1"
0 REPLIES 0