Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How to Fix Windows Cannot Read the ProductKey From the Unattend Answer File in VirtualBox

July 26, 2024
in A, Blog, VirtualBox
0
ADVERTISEMENT

Table of Contents

Cannot Read the ProductKey From the Unattend Answer File in VirtualBox

In some cases, you got the following error when trying to install a Windows VM in VirtualBox with unattended installation. The error during Windows setup appears to be caused by malformed unattended XML configuration file.

02KvcIIk8HCWj87hSNt9edKLRLYGTah7X1nRyp7f1AMmzkrZfxv6HXmZ0lzm

To fix the issue, you can follow the steps below:

1. Turn off the virtual machine.

2. Open the Oracle VM Virtual Manager → Right-click on the VM in the VM list, then select Show in Explorer to open the installation location of the virtual machine.

kJewXcYhkVwkrB0pG4ihTMA1Ow6dmdnEgQX49Lb4NXPXk7qBHtB7iF4c7qBz

3. Inside that directory, you will find the unattended XML Source File. Please open it using your preferred text editor. The file is named ad Unattended-xxxxx.xml.

ToeVRpl2dVKxLsEXd3mTzaB6RX2MUAr051aRzJRSr0GnwRef2T55ghKDSaba

4. Scroll down to find the <ProductKey> tag. It looks strange with this empty line after <ProductKey>.

...
            <UserData>
                <ProductKey>

                    <WillShowUI>OnError</WillShowUI>
                </ProductKey>
                <AcceptEula>true</AcceptEula>
            </UserData>
...

5. We need to insert the <Key> tag as follows. You can also input your product key inside the <Key> tag if you have one. Leaving it empty will install Windows without the product key.

...
            <UserData>
                <ProductKey>
                    <Key></Key>
                    <WillShowUI>OnError</WillShowUI>
                </ProductKey>
                <AcceptEula>true</AcceptEula>
            </UserData>
...

The final XML Source File should be formatted as shown in the screenshot. Then, close and save the file.

hF3zfXOR8k4XRnCLzfRDqLswogGncYSWYUiO6OsQlHHUoIKF4F65emPxSEfV

Start the virtual machine again, and the error should be gone. The unattended installation should be started to auto-install the guest without any user interaction.

7FGNDen71TCVLhH4kuXp4eQEe3eUW1ML1XFr0jM3JafQmVRHAPSCy97FMOxU
ADVERTISEMENT

Not a reader? Watch this related video tutorial:

5/5 - (1 vote)
Previous Post

How to Update Windows Terminal in Windows 10/11

Next Post

How to Remove The Test Mode Watermark Without Disabling Test Mode

Related Posts

Images Hidden Due To Mature Content Settings In CivitAI

August 31, 2024

Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

August 20, 2024

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024

How to Remove The Test Mode Watermark Without Disabling Test Mode

July 28, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory