My goal is to build a separate test\dev environment in a different domain, on different ESXi 5.0 (U2) hosts and separate storage, using clones of our production servers. Most of these servers are Server 2003 SP2 and Windows 2008 R2.
Problem:
I'm attempting to use OSCustomization to automate the process of disjoining the servers from my production domain and adding to a workgroup. I've created a OSCustomization spec that specifies the workgroup, and uses the existing virtual machine name as the NetBIOS name. The spec disjoins and adds to the workgroup flawlessly. My problem is that once the OSCustomization spec is applied, Sysprep (I'm guessing) is adding a "-0" to the end of the virtual machine name. So if the machine was originally named "TestServer", the new name would be "TestServer-0". I've looked through the OSCustomization logs, Sysprep logs, and Event Logs and I am unable to find where\how the name is getting changed. There is no existing "TestServer" on the network, so I don't believe SysPrep is seeing a duplicate name. If that is the case, it is not notated in any logs.
All help is appreciated.
Thanks,
Robbie