Work with Product Keys and Activation
You can enter a product key during an automated installation of Windows by including it in your answer file.
You can also use product keys to select an image to install during an automated Windows installation.
Select Which Windows Edition to Install
To select a Windows edition to install, you can do one of the following:
Install Windows manually, without an answer file. Windows Setup installs the default edition from the Windows product DVD.
Install Windows with an answer file, and include a product key in Microsoft-Windows-Setup\UserData\ProductKey\
Key. Each product key is specific to a Windows edition. Entering the product key in this setting does not activate Windows.
Install Windows with an answer file, and then manually type in a product key during Windows Setup. The product key selects a Windows edition to install.
If you have multiple Windows images with the same Windows edition that are stored in the same Windows image file (.wim), you can use the setting: Microsoft-Windows-Setup\ImageInstall\OSImage\InstallFrom\
MetaDatato differentiate between them. You must still provide a product key using one of the methods listed in the previous list.
For information about managing Windows product keys when changing the Windows image to a higher edition, see Change the Windows Image to a Higher Edition Using DISM.
To automatically activate Windows by using a product key, you can do one of the following:
Use the Microsoft-Windows-Shell-Setup\
ProductKeyunattend setting. You can use either a single-use product key or a Volume License Multiple Activation Key. For more information, see the Volume Activation Planning Guide.
The product key used to activate Windows must match the Windows edition that you install. If you use a product key to select a Windows edition, we recommend using the same key to activate Windows, so that the edition you install is the same as the edition that you activate.
Original Equipment Manufacturers (OEMs) can use OEM-specific activation tools.
In most Windows deployment scenarios, you no longer have to use the
SkipRearmanswer file setting to reset the Windows Product Activation clock when you run the Sysprep command multiple times on a computer. The
SkipRearmsetting is used to specify the Windows licensing state. If you specify a retail product key or volume license product key, Windows is automatically activated. You can run the Sysprep command up to 8 additional times on a single Windows image. After running Sysprep 8 times on a Windows image, you must recreate your Windows image. For more information about Windows components and settings that you can add to an answer file, see the Unattended Windows Setup Reference.