Relative Content

Tag Archive for phprestvmware

Change password on ESXi with REST API

I am trying to write a script in PHP that resets the root password on an ESXi (“myhost”, moId=”host-15458″) registered to a VCSA version 8.0.2 (“myvCenter”, API-Id=8.0.2.200). I have the old password in $oldpass and the new password in $newpass. The host for my tests is a brand new deployment of a nested ESXi 8.0.2b.