Aracılığıyla paylaş


ProductKey (microsoft-windows-setup-userdata-productkey)

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

Note

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

Microsoft-Windows-Setup\UserData\ProductKey\Key

Specifies the Windows image to install during Windows Setup.

Microsoft-Windows-Shell-Setup\ProductKey

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

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

Valid Configuration Passes

windowsPE

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.

<UserData>
   <AcceptEula>true</AcceptEula>
   <FullName>EndUserName</FullName>
   <Organization>Fabrikam</Organization>
   <ProductKey>
      <Key>12345-12345-12345-12345-12345</Key>
      <WillShowUI>Never</WillShowUI>
   </ProductKey>
</UserData>

UserData