I was wondering if anyone knew how to update the password for a computers management account via the API or via a script. Or, also if someone knows a better solution to the following problem.
My situation is this:
We use the JSS quickadd package to create a hidden management account. We also randomize all the management account passwords once per week. When a user upgrades their machine from 10.6 or 10.7 to 10.7 or 10.8 all "service" (sub 500) are removed as part of the installation process,leaving us without a management account. In the past we used to detect if the account was missing, and redeploy a quickadd package via policy if this was the case, however with the change to enrollment this would wipe all the location data for machines. I have put a script together to recreate our hidden management account, similar to what we use to create our hidden local admin account, however I have no way to update the password field on the JSS for the computer information.
Does anyone know a solution to this issue, whether it be how to update the password in the JSS or another solution for recreating the management account.