Recently, I found myself in a quandary… I had forgotten my password to my ESXi hosts for a specific environment. I’m not sure why I forgot my password for these two systems.. getting older (after all don’t they say the mind is the first th…. what was I saying?) .. too many passwords to remember… didn’t write it down like I should… With the amount of test environments I have and the changes that take place over the course of a few months, this has surprisingly only happened this one time. With some thought and trickery, I managed to change the password using the below method. Maybe this will help you as well.
The first thing you need to do is find an ESXi host that you know the password too. I’d log into it remotely through SSH (or however you want to connect) just to be sure that you indeed know it. Then we get slightly devious and use a tool that VMware has graciously given us: Host Profiles.
The below method will only work if your host on which you’ve forgotten the password is attached to a vCenter server.
First, select an ESXi host that you know the password too (see below).
Next, right click on the ESXi host (that you know the password too!) and select Host Profile > Manage Profile.
You’ll get the Profiles Details screen. Put a name in for the profile and then select Next and then Finish.
Click on Home at the top and select Host Profiles. Then right click on the profile you created and select Edit Profile.
Find “Security Configuration”. Under this select Administrator password. At the drop down on the right side of this screen select Configure a fixed administrator password and then enter the new password you would like to have for the host.
Back at the main screen, select the ESXi host that you have lost the password too and then click Manage Profile.
Select the profile created earlier and then click OK.
Place the host which needs the password recovered from into maintenance mode.
Right click on the host that is in maintenance mode and Select Host Profile > Apply Profile
Exit the host from maintenance mode. Your password will be changed on this host.
That’s it! Pretty simple and a nice little work around.
As a side note, you could always create the host profile on one vSphere environment and then export it to another environment.
I hope this helps some of you with. Let me know if I missed anything.