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

Re: Add AD group as Administrator on esxi

$
0
0

RvdNieuwendijk thanks for the reply, the cmd ran without error but when i try to login individual esxi with vspeher client as well as ssh it did not worked.

 

 

Also i checked the esxi with root login the group is not seen in permissions tab, so looks like i did not explain the questions well, I think you got the idea now.

 

i see a note on internet ,,,

 

 

$VMHost        ="hostname.domain.local"

 

$HostPW        ="yxz"

$DomainAdmin   ="DomainAdmin"

$DomainPW      ="yxz"

$ADGroup       ="domain\DomainGroup"

$Domain        ="domain.local"

 

Add-PSSnapinVMware.VimAutomation.Core

 

Connect-VIServer$VMHostUser rootPassword$HostPW

Get-VMHostAuthentication-VMHost$VMHost|Set-VMHostAuthentication-Domain$Domain-Username$DomainAdmin-Password$DomainPW-JoinDomain-Confirm:$false

 

Get-VMHost$VMHost|New-VIPermission-Principal$ADGroup-Role"Admin"

 

Disconnect-VIServer$VMHost-Confirm:$false

 

 

==

 

but the above did not worked for me..

 

I think this can be done only by directly login to each esxi , "Connect-VIServer$VMHostUser rootPassword$HostPW" & then add the AD group with Admin access ...

 

FYI i am able to add the stuff manually & all nodes are connected to AD already


Viewing all articles
Browse latest Browse all 230663

Trending Articles



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