<

How To: Change root user password in PowerCLI.

Published on
3,554 Points
454 Views
1 Endorsement
Last Modified:
R@f@r P@NC3R
Never give up - The effort and daily dedication make a person a winner
The short tutorial provides step by step instructions on how to change the password of the Root user by using Vmware PowerCLI.

I hope you find it very useful.

Introduction


First of all, let's define what is meant by the "Root" user in VMware.


The Root user is just the default user that is used when we start an installation of VMware ESXi on a physical server, to which we set a password to.


When a password change is required to the user referred as "Root", then the traditional way of achieving that task is by connecting directly to the ESXi, or via the VSphere client.

Imagine that you want to make the password change, as can be done by using either of the two methods mentioned above, but you may prefer to use a Command Line Interface to change the password instead. That can be done by using the VMware VSphere PowerCLI command line tool, which is very useful for this type of task and a whole lot more.


The article describes step by step instructions on how to change the password of the Root user, to another password that you, as an administrator may want to use, by using the arguably quicker PowerCLI method.


Changing the root user password using PowerCLI


1. 

Click on the VMware VSphere PowerCLI icon.



1.1 

The VMware Vsphere PowerCLI black interface is displayed.



1.2 

Enter Connect-VIServer and press Enter

Enter the name of the ESXi host - (esx-03a.corp.local) in the example below, and press Enter twice.



1.3 

Enter the root user's credentials to authenticate to the ESXi Host.



1.4 

Note the following display confirming the credentials entered were correct.



1.5 

Enter the following command:

      Set-VMHostAccount -UserAccount root -Password (Enter your New password). Do not include parentheses ()



1.6 

The resulting display shows that the password change was successfully completed.



Congratulations, the password has now been changed.


I hope you found this short tutorial useful and that you can apply it to your work activities in a virtual environment.



1
Comment
0 Comments

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Join & Write a Comment

Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month