joshua-d-miller / macOSLAPS

Swift binary that will change a local administrator password to a random generated password. Similar behavior to LAPS for Windows
MIT License
383 stars 57 forks source link

Feature Request - reset password independent of password reset date #10

Closed bartreardon closed 6 years ago

bartreardon commented 6 years ago

New feature request:

In instances when a mac has been re-built, macOSLAPS won't update the local admin account password if the expiry date stored in AD has not been reached yet. This means the password as stored in AD will not be in sync with what is actually on the machine. It would be hand to be able to run the tool with a switch to update the password at any time, specifically for re-builds (e.g. it could run after rebuild to re-sync the local password with what's in AD).

If I get the chance I'll take a look at the code and issue a PR - documenting here for feedback.

joshua-d-miller commented 6 years ago

Thank you for the feature request. I have posted a new build which takes command line arguments. You should be able to call macOSLAPS from the command line with the argument -resetPassword. Let me know if it works for you! 👍

bartreardon commented 6 years ago

that works well - thank you :)

joshua-d-miller commented 6 years ago

Glad to hear it. I'll be closing this issue 👍