not too sure of cmdlet to do so
but Set-VMHostAccount is definitely not an option for that, this one is for ESXi hosts.
following KB gives you some ways to reset appliance password if it's been expired.
Nope... this is a fresh build.
Changing the password via the CLI or admin page isn't an issue... I just wanted to know if it could be done using PowerCLI.
I'm building a script to configure a vCenter from the ground up. This would be handy (if possible).
Issue:- Resetting Appliance (vCenter, vRA,etc.) password
Troubleshooting Steps #
1. Apply KB # 196 (VMware Knowledge Base) for Repeated characters when typing in remote console
2. Reboot appliance and Go to grub >>>Type e
3. Scroll to the second line displaying the kernel boot parameters >>> Type e >>> Type init=/bin/bash >>> Enter >>> Type b
4. System boots to a shell # >>> Type passwd >>> change new password
5. Unlock root account - pam_tally --user root --reset or faillog -u root -r >>> Reboot .
Use above troubleshooting steps and issue will get resolve