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"