Trying to join a few hundred hosts to the domain. Please advise whyt he below commandline is not working.
NOTES:
-$VCenterAdmin is an AD account that has permissions in both VCenter and AD, the credetial is specified as Domain\AdminName
I'm thinking that there are services i need to turn on for the host in order for it to join to the domain, but the services are identical to a test environment that worked fine yesterday. Please advise the restrictions around this commands success and what this particular error means if possible.
Thanks!
Actual ERROR:
$setObject = Get-VMHostAuthentication -VMHost $hosts[0] | Set-VMHostAuthentication -Domain DOMAIN.NAME.HERE -Username $VCenterAdmin.userName -Password $VCenterAdmin.GetNetworkCredential().password -JoinDomain:$true -Confirm:$False
Set-VMHostAuthentication : 6/13/2013 7:29:03 AM Set-VMHostAuthentication Active directory authentication store is not supported for VMHost vmvspm0249.ho.nmfco.com.
At line:1 char:87
+ $setObject = Get-VMHostAuthentication -VMHost $hosts[0] | Set-VMHostAuthentication <<<< -Domain ho.nmfco.com -Username $VCenterAdmin.userName -Password $VCenterAdmin.GetNetwork
Credential().password -JoinDomain:$true -Confirm:$False
+ CategoryInfo : InvalidOperation: (:VMHostAuthenticationImpl) [Set-VMHostAuthentication], ViError
+ FullyQualifiedErrorId : Vicore_SystemManagementService_JoinDomain_ActiveDirectoryNotSupported,VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.SetVMHostAuthentication