Matched as: the code as given (hex)
HRESULT breakdown: code: 8, customer: False, facility: 7, severity: failure (bit 31 set), wraps_win32: 8, ntstatus_wrapped: False
Likely causes
This error occurs when the computer doesn't have enough available memory (RAM) to install the update. Common causes include:
- The computer is a VM that has a small memory allocation (for example, 1 GB or less).
- During the update, other applications or services consume most of the available memory.
- The computer can't allocate contiguous memory blocks of sufficient size because of memory fragmentation.
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.
Things to try
Click a command to select all of it, then copy.
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
-
Before you install updates, stop all unnecessary services and applications.
-
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 -
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:
- In the Azure portal, go to the VM resource.
- Under Availability + scale, select Size.
- 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.
- Select Resize.
- 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:
- On the affected computer, open Settings, and select System.
- Under Related links, select Advanced system settings.
- On the Advanced tab of the System Properties dialog box, locate the Performance section, and then select Settings.
- Select Advanced, locate the Virtual memory section, and then select Change.
- If the Automatically manage paging file size for all drives checkbox is selected, clear it.
- 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.
- Restart the computer.
- 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.
Log how it went
Support articles
Log a case with no specific solution
Source: Troubleshoot Windows Update error 0x80070008 · CC-BY-4.0 (MicrosoftDocs/SupportArticles-docs, repo license verified 2026-10-09) · retrieved 2026-10-09