I need to start rolling out Windows Server 2022. I have created a 2022 template, then provisioned a server. When I logged in, I found that the local administrator account was reset to the default Administrator. This is important because after the initial boot, we initiate scripting to join the machine to the domain, install default S/W, etc. as the renamed administrator account.
I've tried:
1. Create template by cloning a server with the Administrator account already renamed and local policy set to rename the Administrator account
2. Create template - 2022 OS with standard Administrator, ran Sysprep in audit mode, renamed Administrator to new name, edited local policy to rename Administrator account, ran Sysprep, converted to template
3. Create template - 2022 OS with standard Administrator, ran Sysprep in audit mode, renamed Administrator to new name, edited local policy to rename Administrator account, ran Sysprep, cloned to template
All of these scenarios resulted in the default Administrator name upon initial boot. Can anyone give me a different idea to try?