While testing unattended Windows deployment I encountered a problem.
After the first installation reboot, Windows setup would fail with an empty dialog box:
Followed by the error message:
Windows could not complete the installation. To install Windows on this computer, restart the installation.
Then the machine would countinually reboot and show the last message.
Started troubleshooting by booting into Windows PE.
Then examined setuperr.log and setupact.log under:
However these files contained no useful clues.
I checked the other files left by Windows setup, and examined the files under:
Found this in setuperr.log:
[oobeldr.exe] [Action Queue] : Unattend action failed with exit code 4 [oobeldr.exe] Execution of unattend GCs failed; hr = 0x0; pResults->hrResult = 0x8030000b [oobeldr.exe] User input error was detected in unattend file. Error: [0x0] [windeploy.exe] Command [%windir%\system32\oobe\oobeldr.exe /system] failed with exit code [0x8030000b] [windeploy.exe] Failure occured during online installation. Online installation cannot complete at this time.; hr = 0x8030000b
But it was a warning in setupact.log which revealed the cause behind the error:
[Shell Unattend] Failed to decode password (0x8007000d)
My initial understanding of the user password format in AutoUnattend.xml turned out to be wrong.
This problem was not discovered by Windows System Image Manager, because AutoUnattend.xml was updated just before deployment by a custom program on the target computer.
Local user passwords are encoded like this in AutoUnattend.xml:
1. Text is initially encoded as unicode / UTF-16.
2. Then a “Password” string is appended to the password.
Example: The password “1234” is represented as “1234Password”
3. Finally the password string is base64 encoded.