Original article can be found here: http://pcloadletter.co.uk/2012/02/15/testing-vmware-auto-deploy/
It’s very useful to have a VMware lab environment particularly for training needs, and outside of larger enterprises this is generally difficult to achieve owing to the high time cost of setting one up. VMware Auto Deploy remedies this problem since it allows very rapid provisioning of ESXi hosts via PXE network boot.
Use the WMIC.EXE with an example command as below:
wmic.exe /interactive:off ComputerSystem Where “name = ‘%computername%’” call JoinDomainOrWorkgroup AccountOU=”OU=XP Workstations;DC=my;DC=domain;DC=com” FJoinOptions=1 Name=”my.domain.com” Password=”xyz” UserName=”firstname.lastname@example.org”
We had the same issue here. We solved it using the customization spezification with sysprep functionality to add the VM`s to a specific OU.
MAK activation is used for one-time activation through Microsoft’s hosted activation services, with no renewals required. For background information about MAK activation, see the Volume Activation 2.0 Planning Guide at http://technet.microsoft.com/en-us/library/cc303276.aspx.
Based on original articles located here: http://itnervecenter.com/content/deploying-window-server-2008-r2-vmware-template-and-joining-it-domain
and VMware communities article located here: http://communities.vmware.com/thread/251925
Can't get your Windows Server 2008 R2 virtual machine deployed from a vCenter template to join a Windows Active Directory domain. Try the following tips.
Summary of Recommendations
This document will outline the technical details of these recommendations for most customers deploying the Nexus 1000V on UCS B and C Series servers (C series managed via UCSM), but we will provide an upfront list here to outline the key points: