/build/static/layout/Breadcrumb_cap_w.png

Changing the local accounts password in my answer file

Hi,

I've got what seems to be a very silly problem, and can't find any solution anywhere.

I'm working in an organization that deploys laptops (same model everywhere) to various sites. Each site has a different set of local admin account passwords (the account names are the same but the password change from one site to another). So I've got my Windows 7 image with all the accounts in there with a dummy password and I'd like to use my answer file to modify the password depending on which site I'm preparing a laptop for.

What my answer file currently says is:

<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 !



0 Comments   [ + ] Show comments

Answers (3)

Answer Summary:
Posted by: chucksteel 7 years ago
Red Belt
1
When you save the unattend file using the Windows System Image Manager it encodes the password. 
<Password>
<Value>TQBvAHoAQABtAGIAIwBxAHUAZQAxADAANwA0AFAAYQBzAHMAdwBvAHIAZAA=</Value><PlainText>false</PlainText>
</Password>
It is only encoded using Base64 so it is easily retrieved. You can either keep a catalog of the encoded values and swap them out or change the <PlainText> value to true and just put the plain text value where the encoded value is.

As a side note, Microsoft no longer recommends using the original administrator account (and hasn't for quite some time). You may want to consider creating a separate local administrator account in your unattended installation. 
Posted by: Channeler 7 years ago
Red Belt
0
There are two places where the password is stored in an answer file.

The Specialize pass and the OOBE pass, you should change the password in both places. The one you have is the OOBE I think.... and hopefully that is not the actualy password, is too long.
Posted by: theclaw 7 years ago
White Belt
0

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

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ