VMware vSphere

 View Only
  • 1.  how to keep Windows built-in administrator name from always reverting back to Administrator

    Posted Jan 28, 2022 07:16 PM

    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?



  • 2.  RE: how to keep Windows built-in administrator name from always reverting back to Administrator
    Best Answer

    Posted Jan 29, 2022 07:47 AM

    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”



  • 3.  RE: how to keep Windows built-in administrator name from always reverting back to Administrator

    Posted Feb 01, 2022 01:31 AM

    Ok, so use what's inherent to Windows instead of the customization specification. Well, thank you, that worked!