Generating a random password during OSD and save it in SQL – Part2

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.

localadmin_get1 Using a HTA like this makes it really simple for the Service desk to retrieve the password when needed.

The file can be downloaded here:LocalAdminPW

I hope this can inspire to some nice looking HTA’s out there 😉

Add a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.