All,
I'm fairly new to vCAC and having trouble with something, looking for some help. Users have the ability to log in and request a Windows 2008 R2 server, it joins to the domain fine but it won't place the user in the local administrator group as the build profile I setup is suppose to do. When I try and run the command manually. I don't think it should though. For reference I'm using vCAC 6.1 and building out a Windows Server 2008 R2 server with the latest windows updates.
My build profile looks like this:
VirtualMachine.Admin.UseGuestAgent | true | |
VirtualMachine.Customize.WaitComplete | true | |
VirtualMachine.Software0.Name | Name Of Script To Add User To Local Admin Group | |
VirtualMachine.Software.ScriptPath | c:\scripts\Name Of Script To Add User To Local Admin Group {Owner} | |
VMware.VirtualCenter.OperatingSystem | windows7Server64Guest |
The script is fairly simple its just the below line:
net localgroup Administrators /add %1
This is pretty standard way of doing it from looking around the internet but it doesn't work for me for some reason. The VM never finished building because this gets hung up and never completes. I don't see anything in the logs so I'm not sure what is failing. This is a base build so it doesn't do much in the build process. The Server 2008 R2 VM clones from template, syspreps, renames it and joins it to the domain. This all happens in the customization file. Then this fails to complete. Does anyone notice anything I'm missing?