Reset Management Password After Reimage?

Contributor II

Currently we use one management account password on all imaged Macs, but then use a policy to change the management account password on any student Mac. Lately we have noticed that this policy isn't working when we re-image a student Mac because the JSS database still shows the "new" password, but during the imaging process the management account is created using the original password. Is there a way, via script, to update the JSS database to reflect this change in management account password? I know that I could check the box when imaging to update the autorun database with this information, but that would require retraining all of the people who may be imaging, and it would just be easier to add something to the first-run script to update the database with this information.