Hi.
Anyway to access an ESXi box if the root password has been forgotten?
As your post needs moving to the area for ESXi, I have reported it to the volunteer moderators.
To answer your question: https://kb.vmware.com/s/article/1317898
Check out this thread.
https://communities.vmware.com/t5/New-Security-Advisory-VMSA-2021/Forgot
If its managed by a vCenter:
or when its a ESXi 6.7
Regards,
Joerg
Check this blog:
4 ways to reset root password
https://www.vmwareblog.org/forgot-esxi-root-password-no-problems-4-ways-reset/
In case this is a standalone host - reinstall ESXi but preserve your VMFS datastore. VMs will stay with you.