Created
May 30, 2018 18:05
-
-
Save Dapacruz/a747d2ad84df3bde78f7f6f1365a5b62 to your computer and use it in GitHub Desktop.
Configure Active Directory Authentication on VMware ESXi Hosts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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