How to Reset VMware Root Password Without Reinstalling

Use this guide to reset VMware root password on an ESXi host you can still manage through vCenter, or recover critical virtual machines from existing backups when administrative access is lost.

Ivy

By Ivy Updated on November 26, 2026

Share this: instagram reddit

Need to reset VMware root password access without reinstalling ESXi? Before start, you still need to check whether the host is still connected to vCenter. An authorized vCenter administrator can use Host Profiles or, in eligible environments, PowerCLI to set a new password. A separate local ESXi administrator account may also give you a way back in.

For a standalone host with no usable administrative access, plan for an ESXi reinstall and check whether the installer can preserve the VMFS datastore. If you need a critical workload back before the host is ready, you may be able to restore it from an existing backup to another ESXi host.

Check which access you still have

Check what you can still access, then choose a method in the following:

🔑 What still works ✅ What to do
Your password works at the console, but remote login fails Check if root is locked out of remote login. Look for tools still using an old password.
The host is connected to vCenter Reset VMware root password using Host Profiles. If your license doesn’t include Host Profiles, try PowerCLI.
You can sign in with another local ESXi admin account Reset the root password in the ESXi Host Client.
You’re locked out of a standalone ESXi host Check your VM backups and see if you can reinstall ESXi while keeping the VMFS datastore.

Method 1: Apply a Password-Only Host Profile

Create a dedicated profile for your host When it is actively connected to vCenter and your environment has the vSphere Enterprise Plus license required for Host Profiles. The remediation changes only the root password.

Step 1. In the vSphere Client, open Menu and select Home > Policies and Profiles > Host Profiles.

Host Profile

Step 2. Select Extract profile from a host, then choose the host and click Next. 

Extract Profile from a Host

Step 3. Enter the meaningful name (i.e. Reset_Root_Password) and description for the profile. Then, click Next >Finish. The new profile should appear in the list.

Name and Description

Step 4. Right click the new profile and go to Edit Settings. Expand Edit Host Profile, select root, and set the root user configuration and password, with Fixed password configuration option.

Edit Host Profile

Step 5. Right-click the new profile again, go to Attach/Detach Hosts and Clusters, select the cluster and click Attach. Click Next to setup Customize hosts. 

Attach

Step 6. Right-click the host cluster and select Host Profiles > Remediate. Clear Automatically reboot hosts that require remediation. A reboot is unnecessary for this password-only change.

Remediate

Step 7. Run Host Profiles > Check Host Profile Compliance and verify that the new password works through an authorized direct login. Delete the temporary profile after successful remediation.

Method 2: Reset the password through vCenter with PowerCLI

PowerCLI is an option when the host is connected and responsive in vCenter but your license excludes Host Profiles. Check PowerCLI compatibility with your vCenter and ESXi versions first. On ESXi 8.x and later, this method requires shell access to be enabled for the vCenter management account, vpxuser. 

⚠️Check whether the cluster uses vSphere Configuration Profiles before making a host-level change. In vSphere 8.x and 9.x, a local password change can leave the host out of compliance with its cluster profile. Use the cluster’s configuration workflow when the profile manages the password, and confirm which hosts the remediation will affect.

Step 1. Open the Windows Start menu, search for PowerShell, and open the PowerShell session where VMware PowerCLI is installed. Wait for the PS> prompt.

Step 2. Run Connect-VIServer to connect to vCenter. Replace vcenter.example.com with your vCenter Server address. At the sign-in prompt, enter credentials for an athorized account.

$vCenter = Connect-VIServer -Server "vcenter.example.com" -ErrorAction Stop

Step 3. Run Get-VMHost to find the host. Replace esxi01.example.com with the exact name shown in the vCenter inventory. Confirm that the output lists the correct host and shows Connected under ConnectionState before continuing.

$esxiHost = Get-VMHost -Server $vCenter -Name "esxi01.example.com" -ErrorAction Stop $esxiHost | Select-Object Name, ConnectionState

Step 4. Run Get-Credential to open the credential prompt. Leave the username as root and enter the new ESXi root password.

$credential = Get-Credential -UserName "root" -Message "Enter the new ESXi root password"

Step 5. Run the following commands to apply the password to the host without root password. A successful reset returns True.

$esxcli = Get-EsxCli -VMHost $esxiHost -V2 -ErrorAction Stop

$account = $esxcli.system.account.set.CreateArgs()

$account.id = "root"

$account.password = $credential.GetNetworkCredential().Password

$account.passwordconfirmation = $account.password

$esxcli.system.account.set.Invoke($account)

Step 6. Open the ESXi Host Client or the host’s direct console, whichever your environment permits. Sign in as root with the new password to confirm that you’ve regained access.

Method 3: Sign in with existing local ESXi admini account

Broadcom documents this option for a managed host where Host Profile remediation failed and a manually created local account still has the Administrator role. That account can open the ESXi Host Client and set a new password for root.

Step 1. Sign in to the host’s ESXi Host Client with the working local administrator account. Open Manage > Security & Users > Users. On ESX 9.1 and later, start from Configure.

Users

Step 2. Select root, choose Edit, and save the new password. Verify the new credentials through a direct login method permitted by your environment.

How to recover VMs if you’re locked out of a standalone host

While Broadcom lets you reinstall ESXi and preserve the VMFS datastore, that’s only half the battle. You still have to manually reconfigure host settings like networking, which could mean hours of downtime.

If you can't afford that downtime and created VMware backups with AOMEI Cyber Backup, you can restore critical VMs directly to a different, healthy ESXi host to get your workload back online fast.

AOMEI Cyber Backup
Free, Centralized, Agentless Enterprise Data Backup Solution
  • Manage all your VMware backups from one console without installing agents in individual VMs.
  • Set up full, incremental, or differential backups to run automatically on your preferred schedule.
  • Support vSphere, ESXi, and vCenter from version 6.0 through 8.0.
  • Save backups to NAS, local drives, or external storage, and archive to Amazon S3.
  • Recover fast with instant recovery, granular recovery, and more.

Step 1. Open Task > Backup, and find the task that contains the affected VM, and choose Restore from its action menu. The restore wizard should show the available source.

Restore

Step 2. Click Select + and select a recovery point when the workload was last known to be healthy. Check the timestamp before proceeding.

Select Content

Step 3. Choose Restore to new location.

Restore to New Location

Step 4. Select the alternate ESXi host and datastore, enter a name for the recovered VM, and review its CPU and memory settings. 

Select Target and DataStore

Step 5. Confirm all the settings and click Start Restore. Confirm the VM appears in the destination inventory when the job finishes.

Before reconnecting it to the production network, check whether the original VM is still running to avoid duplicate IP addresses or two instances of the same service.

Verify access after the reset

Once you reset VMware root password access, test the new credentials directly and confirm the host still shows as connected in vCenter if it is managed there. Update any backup jobs, monitoring tools, or scripts that sign in directly as root. If you recovered a VM to another host, verify the application and its data before returning it to service.

Ivy
Ivy · Editor
Ivy, our dedicated editor at AOMEI Technology, is committed to providing valuable insights and guidance in data protection. Her mission is to empower everyone with her knowledge of computer backup and recovery, disk cloning, file synchronization, and more. Ivy's goal is to do her best to ensure your digital world remains safe and secure.