Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 230663

Add AD group as Administrator on esxi

$
0
0

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


Viewing all articles
Browse latest Browse all 230663

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>