Applies To: Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista

ProductKey contains settings that specify which edition of Windows to install. The product key that you purchase determines which edition you can install.


For more information about product keys, see the topic Work with Product Keys and Activation in the Windows Assessment and Deployment Kit (Windows ADK).

Comparison of Product Key Settings


Specifies the Windows image to install during Windows Setup.


Specifies a product key to activate Windows with. This setting can be used with Microsoft-Windows-Setup\UserData\ProductKey\Key, and the two product keys can be different.

If you are using a Volume License Multiple Activation Key (MAK), you must specify the MAK by using this setting.

Child Elements


Specifies the product key.


Specifies the circumstances in which the user interface (UI) for the product key will be displayed.

Valid Configuration Passes


Parent Hierarchy

Microsoft-Windows-Setup | UserData | ProductKey

Applies To

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

XML Example

The following XML output shows how to set user data.


See Also