Reset the HP iLO Administrator password with hponcfg on ESXi

Sometimes you need to reset the ILO Administrator password. Sure, you can reboot the server, press F8 and then reset the Administrator password. If you have installed a HP customized ESXi image, then there is a much better way to reset the password: HPONCFG.

Check the /opt/hp/tools directory. You will find a binary called hponcfg.

All you need is a simple XML file. You can use the VI editor or you can copy the necessary file with WinSCP to the root home directory on your ESXi host. I prefer VI.

Press i to switch to the insert mode. Then paste this content into the file. You don’t have to know the current password!

Press ESC and then :wq<ENTER> to save the file and leave the VI. Now use HPONCFG together with the XML file to reset the password.

That’s it! You can now login with “Administrator” and “password”.

Reset the HP iLO Administrator password with hponcfg on ESXi
4.8 (96.67%) 36 votes
Patrick Terlisten
Follow me

Patrick Terlisten is the personal blog of Patrick Terlisten. Patrick has nearly 2 decades of experience in IT, especially in the areas infrastructure, cloud, automation and industrialization. Patrick was selected as VMware vExpert (2014 - 2018), as well as PernixData PernixPro.

Feel free to follow him on Twitter and/ or leave a comment.
Patrick Terlisten
Follow me

16 thoughts on “Reset the HP iLO Administrator password with hponcfg on ESXi

  1. Robert Strohl

    Did not work for me. My server is running Windows Server 2012 R2 Core (no GUI). Do you have any recommendations for how to reset ILO password on Server Core?

  2. Vivek


    If i change the Administrator password of ILO with above method whether license key of ilo will get disappear ( deactivate)

  3. Achille

    Thank you
    We changed the motherboard of one of our server and the licence key was lost.
    We used your technique to get the serial key from another server on the same cluster

  4. Ahmed

    I’m trying this, and it says “Please wait while the firmware is reset.” Hmm. It finishes with ‘Script succeeded’, but still can’t log in with ‘password’.
    I had copied your text into a text editor, saved it as pwreset.xml, and dropped it in the same folder as hponcfg. Any thoughts?

  5. Jack Daniel

    Hi, Thanks for the helpful post. While trying this, I am getting error as below:
    ERROR: Could not open input file pwreset.xml
    Error processing the XML file : pwreset.xml
    Any idea what could be wrong? I have edited the pwreset.xml file and used to change a custom local account(instead of Administrator).


Leave a Reply

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