Zero-XAtlasHelp

Troubleshoot Windows Update error 0x80070008

Updated 2026-04-28 · CC-BY-4.0 (MicrosoftDocs/SupportArticles-docs, repo license verified 2026-10-09) · retrieved 2026-10-09 · original

0x80070008

Troubleshoot Windows Update error 0x80070008

Summary

Windows Update error 0x80070008 (ERROR_NOT_ENOUGH_MEMORY) occurs when the computer doesn't have enough available memory (RAM) to install an update. This error commonly occurs on virtual machines (VMs) that have limited RAM, or when other processes consume most of the available memory during the update process. This article describes how to identify the cause of the error. The article walks you through several steps to resolve the error, including freeing up memory, adjusting virtual memory settings, and resizing Azure VMs.

Symptoms

You install a Windows update, but the installation fails, and you see error code 0x80070008 reported.

To get more information, review the following resources:

  1. Review the WindowsUpdate.log file or the CBS.log file. Look for entries that resemble the following example:

    Error 0x80070008: Not enough memory resources are available to process this command.
    
  2. Open Event Viewer, and go to Windows Logs > System. Look for events from the Resource-Exhaustion-Detector source that occurred around the time of the update failure.

  3. Check for low memory conditions. Use one of the following methods:

    • Open Task Manager, select Performance, and then select Memory.

    • Open a Windows PowerShell command prompt, and then run the following cmdlets:

      Get-Process | Sort-Object WorkingSet64 -Descending | Select-Object -First 10 Name, @{N='MB';E={[math]::Round($_.WorkingSet64/1MB)}}
      

Cause

This error occurs when the computer doesn't have enough available memory (RAM) to install the update. Common causes include:

This issue is more likely to occur if the update package is large. Such updates might require more memory than what's available for extraction and staging.

Resolution

Important

Before you troubleshoot this issue, back up the operating system disk. For information about this process for VMs, see About Azure Virtual Machine restore.

Step 1: Free up memory

  1. Before you install updates, stop all unnecessary services and applications.

  2. After you stop services and applications, restart the Windows Update service. For example, open a Command Prompt window, and then run the following commands:

    net stop wuauserv
    net start wuauserv
    
  3. Try again to install the update. If the update still doesn't install, go to step 2 (for virtual machines) or step 3 (for all computers).

Step 2: Increase VM memory (Azure)

If the affected computer is an Azure VM, resize the VM by following these steps:

  1. In the Azure portal, go to the VM resource.
  2. Under Availability + scale, select Size.
  3. Select a VM size that uses more RAM. To make sure that updates install smoothly, select a size that uses at least 2 GB of RAM.
  4. Select Resize.
  5. Try again to install the update. If it still doesn't install, continue to step 3.

For more information, see Resize a virtual machine.

Step 3: Configure virtual memory

If increasing physical memory isn't possible, increase the page file size. This setting allows the computer to use larger sections of the hard disk for memory. Follow these steps:

  1. On the affected computer, open Settings, and select System.
  2. Under Related links, select Advanced system settings.
  3. On the Advanced tab of the System Properties dialog box, locate the Performance section, and then select Settings.
  4. Select Advanced, locate the Virtual memory section, and then select Change.
  5. If the Automatically manage paging file size for all drives checkbox is selected, clear it.
  6. Select Custom size, and then type new values for the initial and maximum paging file size. The new values should be greater than 1.5 times the physical RAM capacity.
  7. Restart the computer.
  8. Try again to install the update. If it still doesn't install, continue to step 4 (for virtual machines) or step 5 (for all computers).

Step 4: Use the Run command reset tool (Azure)

If the previous steps don't resolve the issue on an Azure VM, try the Azure VM Windows Update Reset Tool. You can run the tool directly from the VM's Azure portal page by using Operations > Run command. When you use this method, you don't have to sign in to the VM.

This tool resets the Windows Update servicing stack. The reset can clear memory-related lock states in the update agent.

After you run the tool, try again to install the update. If it still doesn't install, go to step 5.

Step 5: Install updates individually

If the issue persists, install updates one at a time instead of in batches.

To get a list of the pending updates, run the following cmdlet at a PowerShell command prompt on the affected computer:

Get-WindowsUpdate -MicrosoftUpdate

To install one of the updates from the list, run the following cmdlet:

Install-WindowsUpdate -KBArticleID "KB5XXXXXX" -AcceptAll

Note

In this cmdlet, XXXXXX represents the identification number of the update.