Vsphere 5.1 build 1157734
PowerCLI Version
----------------
VMware vSphere PowerCLI 5.1 Release 2 build 1012425
---------------
Snapin Versions
---------------
VMWare AutoDeploy PowerCLI Component 5.1 build 768137
VMWare ImageBuilder PowerCLI Component 5.1 build 768137
VMware License PowerCLI Component 5.1 build 669840
VMware VDS PowerCLI Component 5.1 build 1012428
VMware vSphere PowerCLI Component 5.1 build 1012428
Running script via powercli 32bit prompt
The script referenced in this thread is not working for me.
I am attempting to join Win2008R2 systems to a Windows 2003 domain. I have the custspec putting in the IP, dns, subnet, gateway, and dns suffix for our environment
I ran the script to build the custom spec per machine, and then deleted the VM, and ran this:
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
Connect-VIServer virtualcenter
New-VM -vmhost esxihost -Name GUEST -Template WIN2008R2-WITHSQL-TEMPLATE -Datastore NETAPP -OSCustomizationSpec GUEST
Start-VM -VM GUEST -Confirm:$false
Customizationspec is failing. netpjoindomainonds: function exits with status of: 0x52e
I have tried:
user principal name, DOMAIN\username, and username for credentials
I have tried FQDN of the AD domain, and its netbios name
I'm really at a loss. I've at least gotten it to set the IP, and change the DNS/Netbios name, but it will not join Active Directory.