Activating Windows OEM Product Key via autounattend.xml in Windows 11 Installation
Windows System Image Manager (SIM) is a powerful tool that allows you to create an answer file (autounattend.xml) to automate the installation of Windows 11 on fresh sets of OEM PCs. One of the critical steps in this process is activating the Windows OEM product key. This article will guide you through the process, focusing on the global topic of Windows 11 installation.
Understanding autounattend.xml
The autounattend.xml file is an XML-based answer file used by Windows Setup to automate the installation process. It contains various sections, or "passes," that define the settings for each stage of the installation. The two main passes for Windows 11 installation are the WindowsPE pass, which configures the Windows Preinstallation Environment, and the offlineServicing pass, which configures the Windows image before it is applied to the target computer.
Adding the Product Key
To add the Windows OEM product key to the autounattend.xml file, follow these steps:
- Open Windows SIM and create a new answer file for Windows 11.
- In the WindowsPE pass, expand the Specialize pass.
- Right-click on the Microsoft-Windows-Shell-Setup_Microsoft-Windows-Shell-SetupOptions component and select Add Setting to Pass.
- In the Add Setting dialog box, locate the ProductKey setting and enter your OEM product key in the Value field. Ensure that you enter the key in the format XXXXX-XXXXX-XXXXX-XXXXX-XXXXX.
Verifying the Installation
After you have added the product key to the autounattend.xml file, you can verify the installation by following these steps:
- Create a Windows 11 installation media using the media creation tool from the Microsoft website.
- Insert the installation media into the target OEM PC and boot from it.
- Follow the on-screen instructions to complete the installation.
- After the installation is complete, log in to the desktop and open a command prompt.
- Type
slmgr /dliand press Enter to display the license information. The license status should be "Licensed" and the description should include the OEM product key that you added to the autounattend.xml file.
References
- Windows System Image Manager Technical Reference
- Windows Setup Command-Line Options
- Windows Activation Command-Line Options
By following the steps outlined in this article, you can use the autounattend.xml file to automate the installation of Windows 11 on fresh sets of OEM PCs and ensure that the Windows OEM product key is activated during the installation process.