0

I'm using packer and answerfile to build windows server image. When I set autologon and AdministratorPassword as plaintext, it works fine.

However, when I set autologon and AdministratorPassword as plaintext=false, I get an error shown below.

        <AutoLogon>
            <Password>
                <Value>cAB3AEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value>
                <PlainText>false</PlainText>
            </Password>
            <LogonCount>1</LogonCount>
            <Username>Administrator</Username>
            <Enabled>true</Enabled>
        </AutoLogon>

<UserAccounts>
   <AdministratorPassword>
      <Value>cAB3AEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value>
      <PlainText>false</PlainText>
   </AdministratorPassword>
</UserAccounts>

Error

Windows could not parse or process unattended answer file for pass [oobeSystem]. Setting specified in the answer file cannot be applied. Error was detected while processing settings for component Microsoft Windows shell setup.

I noticed that when I just use autologon with plaintext=false and delete adminpassword alltogether, it works.

What seems to be the issue here?

0 Answers0