RNAR
Enthusiast
Enthusiast

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

Jump to solution

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?

0 Kudos
1 Solution

Accepted Solutions
amohammadimir
Enthusiast
Enthusiast

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

0 Kudos
2 Replies
amohammadimir
Enthusiast
Enthusiast

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.
0 Kudos
RNAR
Enthusiast
Enthusiast

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

0 Kudos