For retail editions of Windows (for example, Windows 7 Ultimate), make the following modifications:
<Key>
element inside the <ProductKey>
element. For example: <UserData>
<AcceptEula>true</AcceptEula>
<ProductKey>
<Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key>
<WillShowUI>OnError</WillShowUI>
</ProductKey>
</UserData>
This element is located in the "Microsoft-Windows-Setup" component in the “WindowsPE” in pass.
<ProductKey>
element located in the “Microsoft-Windows-Shell-Setup” component in the “specialize” pass:<ProductKey>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</ProductKey>