Tuesday, May 10, 2016

Changing ESXi root passwords the smart way (via PowerCLI)

Changing ESXi passwords the manual way

Steps taken from VM KB 1004659
  1. Log on to SSH as root, or log on and use “su –“ to get root level access
  2. Use “passwd root” to change the root password
  3. Log off and log back on using the new password to test access
Rinse and repeat


Changing ESXi root passwords the smart way (via PowerCLI)

The script is fairly heavily commented, usage is as follows:
.\Change-HostPasswords.ps1 -vCenter VC-01.definit.local -Location “DefinIT Lab”
Source code for this has moved to GitHub to allow a bit more structured collaboration:


No comments:

Post a Comment

Vmware NSX SSL creation 

Using OpenSSL for NSX Manager SSL import: Creates CSR and 4096 bit KEY Creating NSX 6.4.2 SSL    openssl req -out nsxcert.csr -newkey rsa:40...