Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Resolved: Esxi Join domain failed-Error in Active Directory Operations

November 26, 2017 11:07AM

This is some times common, you document something and if don't implement it or use something since long, you might forget knowledge or the issues you resolved earlier. I was automating join domain ESXi servers, while trying joining I was keep getting error: Errors in Active directory operations. I already had written article for the same. POWERCLI AND VSPHERE WEB CLIENT: JOIN ESXI INTO ACTIVE DIRECTORY DOMAIN CONTROLLER, here I have mentioned to check few ports. But everything was working. but still getting below error.

vmware vsphere vCenter esxi, authentication services, join domain, directory services configuration, local authentication, errors in active directory operations, domain credentials

After going through my earlier article, As per above screenshot I was using correct credentials, but wrong way. You must not use DomainName\UserName while providing credentials. Instead you must use it as UserName@DomainName.com, As shown it will be successful immediately.

vmware vsphere esxi vcenter, configure join domain, leave domain, domain settings trusted domain controllers, correct way, errors in active directory operations, trusted Domain controllers, esxi cannot join to domain

Next if you are using Powercli to deploy this task and using user name same way DomainName\UserName in the credentials, It will throw same error. 

cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:

Credential
Set-VMHostAuthentication : 11/25/2017 8:53:36 PM        Set-VMHostAuthentication                The operation for the entity "esxi001.vcloud-lab.com" failed with the following message: "Errors in Active Directory operations."
At line:1 char:59
+ ... d-lab.com | Set-VMHostAuthentication -Domain vcloud-lab.com -Credenti ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Set-VMHostAuthentication], ActiveDirectoryFault
    + FullyQualifiedErrorId : Client20_TaskServiceImpl_CheckServerSideTaskUpdates_OperationFailed,VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.SetVMHostAuthentication

In the second example I used username in email form UserName@DomainName.com in the credential pop up box. and it was successful.

vmware vsphere web client, vCenter, Esxi, Powercli, Get-VMhostAuthentication vmhost, Set-Vmhostauthentication domain credential get-credential, joindomain confirm, Errors in Active directory operations

Useful Blogs
POWERCLI AND VSPHERE WEB CLIENT: JOIN ESXI INTO ACTIVE DIRECTORY DOMAIN CONTROLLER
How to configure DNS on esxi server
VMWARE SECURITY BEST PRACTICES: POWERCLI ENABLE OR DISABLE ESXI SSH
Reset forgotten ESXi root password on Domain joined Esxi using vSphere web client and Powercli

Go Back

Comment