VMware Cloud Community
drivera01
Enthusiast
Enthusiast
Jump to solution

changing esxi and esx root password?

Hi,

Is there an easy way to change root passwords of esxi/esx hosts via powercli?

thanks!!!

0 Kudos
1 Solution

Accepted Solutions
RvdNieuwendijk
Leadership
Leadership
Jump to solution

You can use the Set-VMHostAccount cmdlet to change the root password of an ESX/ESXi server. Remember that you need to connect directly to the host to do this.

Connect-VIServer -Server ESX1.yourdomain.com -User root -Password secret

Set-VMHostAccount -UserAccount root -Password topsecret

Regards, Robert

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition

View solution in original post

0 Kudos
1 Reply
RvdNieuwendijk
Leadership
Leadership
Jump to solution

You can use the Set-VMHostAccount cmdlet to change the root password of an ESX/ESXi server. Remember that you need to connect directly to the host to do this.

Connect-VIServer -Server ESX1.yourdomain.com -User root -Password secret

Set-VMHostAccount -UserAccount root -Password topsecret

Regards, Robert

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
0 Kudos