[PowerCLI]: Change Local Account Password on ESXi


Usually, administrators using same password on all servers for easier management and there is some security reasons to change the password periodically such as defining an expire time for password or when one of members is left company.

Changing user’s password or many users password on a single host is too easy but what about more than host?

You know, VMware has provided some automation tools such as PowerCLI. The automation tools will help administrators to do their tasks much easier and faster than GUI.

In this post, you’ll find a simple solution for changing multiple users password on multiple ESXi hosts.

The Script!


The below script will help you to change a user account’s password on multiple ESXi servers:

I’ll publish another script to change multiple accounts password with multiple passwords on multiple ESXi servers.

Read More on Teimouri.net

[PowerCLI]: Add Local Administrator Account on ESXi

Using Client Information in VMware View

VMware Tools Client – Interact with a VM without Network Connectivity

VMware View Pool Entitelement Cleanup

Run ESXi Commands Via PowerShell And SSH

ESXi Command-Line – Part 1

[Script]: Find ESXi HBA WWN via PowerCLI

Check CPU, Memory and Storage OverCommitment – PowerCLI

Davoud Teimouri

Professional blogger, vExpert 2015/2016/2017/2018/2019/2020/2021/2022/2023, vExpert NSX, vExpert PRO, vExpert Security, vExpert EUC, VCA, MCITP. This blog is started with simple posts and now, it has large following readers.

4 Responses

  1. chinnaiya says:

    Could you please share script to reset root password for many esxi hosts (each host has different root password).

  2. cvman says:

    David,

    Does this work against the administrator account as well? I need to change the password across thousands of hosts and. VCs for [email protected].

Leave a Reply

Your email address will not be published. Required fields are marked *