As a follow up to the post I wrote on how to generate a randomized local admin password and save it in SQL https://ccmexec.com/2012/06/generating-a-random-password-during-osd-and-save-it-in-sql/ , I will now describe a simple .HTA to retrieve the local admin password for a computer using a simple .hta. The .HTA has many graphical improvement potential but it works.
It will use the credentials that is is launched with to access the DB and retrieve the password for a specific computer.
The file can be downloaded here:LocalAdminPW
I hope this can inspire to some nice looking HTA’s out there 😉