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

Re: How can I specify an OU when Joining ESXi to Domain via PowerCLI?

$
0
0

yes I can join to a OU form the vSphere Clinet.

 

all you have to do in the domain section is specify the domain like:

 

somedomain.com/ou/ou2 etc...

 

 

so Onyx gave me the code like this:

 

 

 

# ------- JoinDomain_Task -------



$_this = Get-View -Id 'HostActiveDirectoryAuthentication-ha-ad-auth'

$_this.JoinDomain_Task("prod.cyberintegration.net/cis/computers/esxi", "myusername", "mypassword")

 

 

 

I was wondering how to incorperate it into this:

 

 

Get-VMHost | Get-VMHostAuthentication | Set-VMHostAuthentication -JoinDomain somedomain.local -Username myusername -Password "mypassword"


Viewing all articles
Browse latest Browse all 293210

Trending Articles



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