ProductKey specifies the product key to use for Windows activation.

Entering an invalid product key in the answer file will cause Windows Setup to fail.

If you are using a Volume License Multiple Activation Key (MAK), you must specify it in the ProductKey setting. If you preinstall Windows under a volume license agreement, consult your specific license agreement to determine the number of installations permitted per product key. For more information about product keys, see Work with Product Keys and Activation in the Windows® Assessment and Deployment Kit (Windows ADK) Technical Reference.

Comparison of Product Key Settings


Specifies the Windows image to install during Windows Setup.


Specifies a Product Key to activate Windows. This setting can be used with Microsoft-Windows-Setup\UserData\ProductKey\Key. The two product keys can be different.



Specifies the key used to install and to activate Windows. Product_key is a 29-character string.

This string type does not support empty elements. Do not create an empty value for this setting.

Valid Configuration Passes


Parent Hierarchy

Applies To

For a list of the Windows editions and architectures that this component supports, see Microsoft-Windows-Shell-Setup.

XML Example

The following XML output shows how to set the product key.

  Copy Code

See Also