All Products
Search
Document Center

Elastic Compute Service:What do I do if the operating system of a Windows ECS instance fails to be updated and the 0x80070422 error code appears?

Last Updated:Dec 13, 2024

This topic explains how to resolve the issue where a Windows Elastic Compute Service (ECS) instance is unable to update its operating system, resulting in the 0x80070422 error code.

Problem description

A Windows ECS instance may fail to retrieve or install updates, displaying the error code 0x80070422 as illustrated below:

image

Causes

The issue may arise from the following causes:

Solutions

Solution 1: Enable the service by using PowerShell or modifying the registry

  1. Connect to the Windows instance that you want to activate.

    For more information, see Use Workbench to connect to a Windows instance over RDP.

  2. To enable the disabled dependencies of the Windows Update service, use one of the following methods:

    Run PowerShell scripts

    1. Start Command Prompt.

      1. Right-click the Dingtalk_20210510142550.jpg icon, and then click Windows PowerShell (Admin).

        image

    2. Run the following commands to set the service to automatically start at system boot and initiate the service.

      Set-Service -Name <ServiceName> -StartType Automatic
      Start-Service -Name <ServiceName>

      Take the BITS service as an example. If the system returns information with the text below, this indicates that the BITS service has failed to start.

      image

    3. (Optional) If the service you want to start still fails, you may need to restart the instance for the changes to take effect. For more information, see Restart an instance.

      Note

      The services that require a restart to begin operation vary based on the operating system environment.

    Modify the registry

    1. Right-click Dingtalk_20210510142550.jpg the icon, and then click Run.win2016运行

    2. In the Run dialog box, enter regedit, and then click OK to open the Registry Editor window.

      image

    3. In the Registry Editor, navigate to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS path, double-click the Start registry entry, set the Value data to the Hexadecimal value 2, and then click OK.

      image

    4. (Optional) If the service you want to start still fails, you may need to restart the instance for the changes to take effect.

      For more information, see Restart an instance.

      Note

      The services that require a restart to begin operation vary based on the operating system environment.

  3. Try updating the Windows operating system again. If the system successfully retrieves or installs updates, the issue has been resolved.

Solution 2: Use the SFC tool to restore the binary files

  1. Connect to the Windows instance that you want to activate.

    For more information, see Use Workbench to connect to a Windows instance over RDP.

  2. Start Command Prompt.

    1. Right-click the Dingtalk_20210510142550.jpg icon, and then click Windows PowerShell (Admin).

      image

  3. Run the following command to verify the integrity of all system files and repair any corrupted files.

    sfc /scannow
  4. Try updating the Windows operating system again. If the system successfully retrieves or installs updates, the issue has been resolved.