Forum Discussion

felhakeem's avatar
felhakeem
Copper Contributor
Oct 02, 2024

Failed to upgrade Windows Server 2016 to Windows Server 2019

I have an issue when I try to do an in-place upgrade from Windows Server 2016 to Windows Server 2019. Installation keep fails at 5%

The server is Domain joined I used Local admin & Domain admin same error

According to Upgrade logs i found these errors:

PidGenX function failed on this product key. (hr = 0x8a010001)

ProductKey: Failed to report Host OS channel to telemetry

ERROR,OrphanFileFinder::GetEvidence,98,onecore\base\appcompat\inventory\software\inv\lib\file.cpp(1881)\AEINV.dll!00007FFD2AC46D01

DoExecute: Cannot extract file \Windows\System32\Recovery\winre.wim from C:$WINDOWS.~BT\Sources\Install.wim. Error 0x80070522[gle=0x00000522]

ExecuteOperations: Failed execution phase Downlevel. Error: 0x80070522

ExecuteCurrentOperations reported failure!

Using action error code: [0x80070522]

CDlpActionImageDeploy::ExecuteRoutine(487): Result = 0x80070522

ExecuteInstallMode(883): Result = 0x80070522

ExecuteDownlevelMode(390): Result = 0x80070522

  • kyazaferr's avatar
    kyazaferr
    Steel Contributor

    Check Product Key

    The error related to PidGenX and product key suggests an issue with the validation of your product key.

    • Double-check that the product key being used for the upgrade is valid and corresponds to a Server 2019 edition.
    • To re-enter the product key during the upgrade, you can:
      • Open a Command Prompt as Administrator.
      • Use the following command to re-enter the product key
  • kyazaferr's avatar
    kyazaferr
    Steel Contributor

    Check File and Folder Permissions

    The error code 0x80070522 often relates to access issues on certain files or folders.

    • Ensure that the C:$WINDOWS.~BT and C:\Windows\System32\Recovery folders are not restricted. You can try the following steps:
      • Right-click on the folders and select Properties.
      • Go to the Security tab and ensure that Administrators and SYSTEM have Full Control permissions.
      • Check if any antivirus or security software is blocking the upgrade process. Temporarily disabling such software might help.

    3. Delete Pending Upgrade Files

    • The upgrade process might be failing due to leftover or incomplete upgrade files.
      • Delete the contents of the C:$WINDOWS.~BT folder manually (if possible). This folder holds temporary files used for upgrading.
      • You can also delete C:$WINDOWS.~WS if present, as this folder also stores upgrade-related data.
  • kyazaferr's avatar
    kyazaferr
    Steel Contributor

    Key Error Breakdown:

    • 0x80070522: This is a permission error that usually occurs when the system doesn't have sufficient access to certain files or folders during the upgrade.
    • PidGenX function failed: This indicates an issue with the product key during the upgrade process.
    • Unable to extract file winre.wim: This suggests a failure in extracting recovery files necessary for the upgrade process.

    Here are some troubleshooting steps to resolve the issue:

    Run Windows Update Troubleshooter

    • Before proceeding with complex troubleshooting, it's good to run the built-in Windows Update Troubleshooter:
      • Go to Settings > Update & Security > Troubleshoot.
      • Select Windows Update and run the troubleshooter to automatically detect and fix issues with updates.
      •  

Resources