Hello All
I have esxi connected to AD group already
Now i need to add one ad group to Esxi Administrator
New-VIPermission
New-VIRole |
I saw a note from LucD
$oldGroup = 'domain\oldgroup'
$newGroup = 'domain\newgroup'
foreach($esx in Get-VMHost){
$oldPerm = Get-VIPermission -Entity $esx | where {$_.Principal -eq $oldGroup -and !$_.Propagate}
New-VIPermission -Entity $esx -Principal $newGroup -Role $oldPerm.Role -Propagate $oldPerm.Propagate -Confirm:$false
Remove-VIPermission -Permission $oldPerm -Confirm:$false
}
But i am not able to co-relate it to my case
my esxi are running 6.0x