Greetings All,
I'm trying to use powercli to update our AD authentication credentials in the host customizations. I found the relevant key names by resetting a hosts' customizations and then running the command...
Get-VMHost esxi1.contoso.com | Get-VMHostProfileRequiredInput | ft -autosize
I then created a hash table per Microsoft's help pages...
$requireInput = @{}
$requireInput.add('authentication.activeDirectory.JoinDomainMethodPolicy.userName','Idiot')
$requireInput.add('authentication.activeDirectory.JoinDomainMethodPolicy.password','12345')
I then ran the following command to try to apply the customizations...
Invoke-VMHostProfile esx1.contoso.com -Variable $requireInput -Profile esxprofile
However, the output always complains about the password being blank or the password type being incorrect (as follows)...
Invoke-VMHostProfile : 9/21/2022 10:19:04 PM Invoke-VMHostProfile The profile 'esxprofile' can not be applied
on host 'esx1.contoso.com': 'Invalid parameter type for parameter password'
Anyone have any idea how to fix this?
Can AD authentication passwords even be set this way?
Any help would be appreciated.
Thanks in advance!