VMware vSphere

 View Only
  • 1.  Cannot login with my account in Vmare esxi

    Posted Jun 22, 2024 05:26 AM

    Hi,

    I have a problem with esxi. I cannot login with my account in vmare esxi. Because password not working.

    Atually i have acess to Vshpere and works fine.

    Its possible to create a new user in Vmware Esxi through Vshpere ? 

    Or replace the password for Vmware esxi through Vshpere ?



  • 2.  RE: Cannot login with my account in Vmare esxi

    Posted Jun 22, 2024 05:33 AM
    Edited by a_p_ Jun 22, 2024 05:33 AM

    As long as the ESXi host is managed by vCenter Server, you have some options to reset a host's root password.
    You can either do this using Host Profiles (depending on the license you have), or - what I prefer - using a PowerCLI script like this:

    #Connect to vCenter
    Connect-VIServer <vcenter-name>
    
    #Connect to esxcli
    $esxcli = Get-EsxCli -VMhost <esxi-host-name> -V2
    
    
    #Define new password for root
    $arg = $esxcli.system.account.set.CreateArgs()
    $arg.id = 'root'
    $arg.password = 'NewPassword'
    $arg.passwordconfirmation = $arg.password
    
    #Set new password
    $esxcli.system.account.set.Invoke($arg)
    

    André




  • 3.  RE: Cannot login with my account in Vmare esxi

    Posted Jun 22, 2024 06:57 AM

    Thank You. Works perfect.