Skip to content

Instantly share code, notes, and snippets.

@Dapacruz
Created May 30, 2018 18:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Dapacruz/a747d2ad84df3bde78f7f6f1365a5b62 to your computer and use it in GitHub Desktop.
Configure Active Directory Authentication on VMware ESXi Hosts
$hosts = '*'
$domain = 'domain.local'
$ad_group = 'Domain Admins'
$user = 'user'
$password = 'password'
Get-VMHostAuthentication -VMHost $hosts | Set-VMHostAuthentication -JoinDomain -Domain $domain -User $user -Password $password
Get-AdvancedSetting -Entity $hosts -Name Config.HostAgent.plugins.hostsvc.esxAdminsGroup | Set-AdvancedSetting -Value $ad_group
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment