/build/static/layout/Breadcrumb_cap_w.png

Systems Deployment Question


Changing the local accounts password in my answer file

09/11/2017 1146 views
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 !


Answer Summary:
0 Comments   [ + ] Show comments

Comments


Answer Chosen by the Author

0

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 :)


Answered 09/12/2017 by: theclaw
White Belt

  • 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.

Community Chosen Answer

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. 
Answered 09/12/2017 by: chucksteel
Red Belt

All Answers

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.
Answered 09/11/2017 by: Channeler
Red Belt

 
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