VMware Cloud Community
RNAR
Enthusiast
Enthusiast
Jump to solution

how to keep Windows built-in administrator name from always reverting back to Administrator

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?

Reply
0 Kudos
1 Solution

Accepted Solutions
amohammadimir
Hot Shot
Hot Shot
Jump to solution

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”

Please remember to mark the replies as answers if they helped.

View solution in original post

Reply
0 Kudos
2 Replies
amohammadimir
Hot Shot
Hot Shot
Jump to solution

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”

Please remember to mark the replies as answers if they helped.
Reply
0 Kudos
RNAR
Enthusiast
Enthusiast
Jump to solution

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

Reply
0 Kudos