Tips

How to reset admin password for vCenter

For vCenter Single Sign-On 5.1
To reset the admin@system-domain password on the vCenter Server Appliance:
  1. Log in as root to the vCenter server Appliance;
  2. From the command line, navigate to /usr/lib/vmware-sso/utils directory;
  3. Run the following command:
    ./rsautil reset-admin-password
  4. Enter the master password when prompted (By default, this is the root password)
  5. Enter the SSO administrator name for which you want to reset the password. For example, admin;
  6. Enter the new password for the user and then confirm it a second time;You should see the message Password reset successfully.
For vCenter Single Sign-On 5.5
To reset the [email protected] password on the vCenter Server Appliance:
Connect to the vCenter Server Appliance through SSH;
  1. Run the following command:
    /usr/lib/vmware-vmdir/bin/vdcadmintool
    This console loads:
    ================================
    Please select:
    0. exit
    1. Test LDAP connectivity
    2. Force start replication cycle
    3. Reset account password
    4. Set log level and mask
    5. Set vmdir state
    ================================
  2. Press 3 to enter the Reset account password option;
  3. When prompted for the Account DN, enter
    cn=administrator,cn=users,dc=vSphere,dc=local
  4. Use the generated password to log in to the [email protected] account.
For VMware Platform Services Controller 6.0
To reset the [email protected] password on the Platform Services Controller or vCenter Server with Embedded Platform Services Controller Appliance:
  1. Log in to the vCenter Server Appliance via SSH;
  2. Run this command to enable access the Bash shell;
    shell.set –enabled true
  3. Type shell and press Enter;
  4. Run the following command:
    /usr/lib/vmware-vmdir/bin/vdcadmintool
    This console loads:
    ================================
    Please select:
    0. exit
    1. Test LDAP connectivity
    2. Force start replication cycle
    3. Reset account password
    4. Set log level and mask
    5. Set vmdir state
    ================================
  1. Press 3 to enter the Reset account password option;
  2. When prompted for the Account UPN, enter:
    administrator@vSphere_Domain_Name.local
    By default, this is:
    [email protected]
    A new password is generated.
  1. Use the generated password to log in to the [email protected] account.

3 thoughts on “How to reset admin password for vCenter

  1. This guide is working for my case but after I have done with this and I got a new password – I cannot log into VCSA via WebClient and it showed “You have no privileges to view this object or it does not exist.”

    Regarding this issue, do you have any solution?

    Thanks,

Leave a Reply

Your email address will not be published.