Changing the local accounts password in my answer file
<LocalAccount wcm:action="modify">
<Password>
<Value>TQBvAHoAQABtAGIAIwBxAHUAZQAxADAANwA0AFAAYQBzAHMAdwBvAHIAZAA=</Value>
<PlainText>false</PlainText>
</Password>
<Description>Administrator</Description>
<DisplayName>Administrator</DisplayName>
<Group>Administrators</Group>
<Name>Administrator</Name>
</LocalAccount>
</LocalAccounts>
Is there anything else I should do ?
The Administrator account in the image is spelled the same way.
Thanks !
Answers (3)
<Password>
<Value>TQBvAHoAQABtAGIAIwBxAHUAZQAxADAANwA0AFAAYQBzAHMAdwBvAHIAZAA=</Value><PlainText>false</PlainText>
</Password>
Top Answer
uh oh, we got carried away far from the original question :)
So let's say I prep my image with Administrator. Then, in my unattend file, I add a local admin. How can I disable the built-in Administrator ?
Thanks :)
Comments:
-
The official answer from Microsoft is that you should only use the in-built administrator account when in audit mode and that it should never be enabled in the first place.
That being said, you can run a first logon command to disable it:
net user administrator /active:no
Remember to update the auto login to your new user and password, too, unless you like logging in manually. - chucksteel 7 years ago