I have a Windows server template. I changed the name of the built-in administrator account in this template. Let's call it otheradmin. Whenever I create a new VM from this template and use the "VM customization specifications", by the time I try to logon to the new VM, the name has reverted back to Administrator. I even put in a run once command in the customization specification saying to rename Administrator to otheradmin, but that seems to have no effect. So, I always have to logon with Administrator the first time and change the name to otheradmin.
Does anyone know how to make this work so that it stays the name that I want or automatically change it to the name I want?
Try using Setupcomplete.cmd
create it in this location:
%WINDIR%\Setup\Scripts\SetupComplete.cmd
and add this:
wmic useraccount where name=”Administrator” call rename name=”otheradmin”
Try using Setupcomplete.cmd
create it in this location:
%WINDIR%\Setup\Scripts\SetupComplete.cmd
and add this:
wmic useraccount where name=”Administrator” call rename name=”otheradmin”
Ok, so use what's inherent to Windows instead of the customization specification. Well, thank you, that worked!