Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Windows Update error 0x80070008: not enough memory resources

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

Windows Update error 0x80070008 is ERROR_NOT_ENOUGH_MEMORY. Microsoft's page, "Troubleshoot Windows Update error 0x80070008" (page dated 2026-04-29), says it "occurs when the computer doesn't have enough available memory (RAM) to install an update", and that it "commonly occurs on virtual machines (VMs) that have limited RAM, or when other processes consume most of the available memory during the update process."

Microsoft's list of system error codes (page dated 2025-07-14) gives error 8 (0x8) the message "Not enough memory resources are available to process this command." That is the same text the update log shows, so the log line and the code agree on what is wrong.

What the error means

The update failed because Windows could not get enough memory to extract and stage it, and (our reading) not because a file is damaged or a permission is missing. Microsoft's page says larger update packages are more likely to hit it: "Such updates might require more memory than what's available for extraction and staging."

Microsoft's symptom description is short. You install a Windows update, the installation fails, and you see error code 0x80070008 reported. The page says to check the WindowsUpdate.log file or the CBS.log file for an entry that resembles this one:

Error 0x80070008: Not enough memory resources are available to process this command.

If your log says 0x8007000E or 0x800705AA instead, that is a related but different code with its own cause, and is not covered here.

Likely causes

Microsoft's page lists three common causes.

Cause What you see How to confirm
The computer is a virtual machine with a small memory allocation (the page's example: 1 GB or less) The update fails on a small VM and succeeds on larger machines Check the memory assigned to the VM in its settings or in the Azure portal
Other applications or services consume most of the available memory during the update Task Manager shows memory nearly full while the update runs Task Manager or the PowerShell command in the next section
The computer cannot allocate contiguous memory blocks of sufficient size because of memory fragmentation Free memory is shown, yet the update fails The page names this cause but gives no test for it

The third cause cannot be proved from the page. If the first two do not apply and memory looks free, treat fragmentation as the remaining possibility Microsoft names, and use steps 1 to 5 below in order.

Prove the cause before changing anything

All of these only read; check 1 writes a log. Microsoft's page gives three checks.

  1. Read the logs. Open WindowsUpdate.log or CBS.log and look for the 0x80070008 line shown above. If WindowsUpdate.log does not exist, it has to be generated from the trace files first. Microsoft's documentation for Get-WindowsUpdateLog says that cmdlet merges Windows Update .etl files into a single readable WindowsUpdate.log file.

  2. Read the System event log. In Event Viewer, go to Windows Logs > System and look for events from the Resource-Exhaustion-Detector source that occurred around the time of the update failure. The page does not say what such an event means; the source name points to resource exhaustion, which is our reading, not Microsoft's words.

  3. Check for low memory. Use one of two methods from Microsoft's page. Either open Task Manager, select Performance, and then select Memory. Or open a Windows PowerShell command prompt and list the ten processes with the largest working set:

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

Take the safety copy before the Fix section. Microsoft's page has an "Important" box saying to back up the operating system disk before you troubleshoot, and points to its "About Azure Virtual Machine restore" page for virtual machines.

Example (illustrative): a 1 GB virtual machine at contoso.com.au fails a cumulative update with 0x80070008. The System log shows a Resource-Exhaustion-Detector event at the time of the failure, and the PowerShell list shows a database service holding most of the memory. Both the small allocation and the competing service match the page's causes, so step 1 comes first, then step 2 if the memory is still short.

Fix

Microsoft gives five steps. After each, you try the update again; if it still does not install, go to the next step the page names (step 2 is for virtual machines, step 3 for all computers).

Step 1: Free up memory

Disruptive step: the next action stops unnecessary services and applications before the update runs. Anyone using those applications or services loses them while they are stopped, so choose a time when the computer can be spared and note what you stopped.

Microsoft's page says: "Before you install updates, stop all unnecessary services and applications." Note each service and application you stop so you can start it again. On a server, do not stop a service that other systems depend on without checking who uses it; the page does not say which services are unnecessary.

Risk: the next two commands stop and start the Windows Update service. As general advice, an update in progress is interrupted.

After you stop the applications, Microsoft's page says to restart the Windows Update service, for example by opening a command prompt and running:

net stop wuauserv
net start wuauserv

Then try the update again. To undo it: start each application or service you stopped. The net start wuauserv command already restores the Windows Update service itself.

Step 2: Increase VM memory (Azure)

Disruptive step: this step applies only if the affected computer is an Azure VM. The change resizes the virtual machine. Microsoft's "Change the size of a virtual machine" page (dated 2026-02-05) warns that if the virtual machine is currently running, changing its size will cause it to restart, and says resizing "should be considered a disruptive operation, especially for stateful workloads". It adds that in some cases you must deallocate the VM first, and that deallocating releases any dynamic IP addresses assigned to the VM, while the operating system and data disks are not affected. As general advice, not from that page: a larger size can cost more, so check the price of the new size before you select it.

Microsoft's page gives 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. The page says: "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 does not install, continue to step 3.

To undo it: the resize page says the same process scales a VM up or down, so select the original size again from the same Size page. The VM restarts again when you do.

Step 3: Configure virtual memory

Risk: the steps below turn off automatic page file management and replace it with fixed values, and they require a restart. Microsoft's page on page file sizing (dated 2026-02-12) says that by default page files are system-managed and increase and decrease based on factors such as the physical memory installed. A fixed size set too low gives the computer less headroom than it had before, and a larger page file takes disk space on the volume that holds it.

Microsoft's page says: "If increasing physical memory isn't possible, increase the page file size." The page file lets the computer use sections of the hard disk as memory.

Save the current setting first. Open the Virtual memory dialog, as in the steps below, and write down whether "Automatically manage paging file size for all drives" is selected and, if not, the current initial and maximum values for each drive. That note is the only record of the setting; the page gives no command to save it.

The page's 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 does not install, continue to step 4 (for virtual machines) or step 5 (for all computers).

Worked example (illustrative; the page gives no size beyond the 1.5 times rule): on a virtual machine with 4 GB of RAM, 1.5 times the physical RAM is 6 GB, so any initial and maximum value above 6 GB meets the page's rule, for instance 8192 MB for both, provided the volume has that much free space.

To undo it: open the same Virtual memory dialog, select "Automatically manage paging file size for all drives" or re-enter the values you wrote down, select OK, and restart the computer. The page asks for a restart after the change; it does not say whether undoing needs one, so restart and then check the setting.

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

Risk: the reset changes the update components on the virtual machine. The page does not list what it changes beyond "the Windows Update servicing stack" and gives no way to undo it, so there is no back-out; the operating system disk backup is the only way back, and it must exist before you run the tool.

If the earlier steps do not fix an Azure VM, Microsoft's page says to try the Azure VM Windows Update Reset Tool. You run it from the VM's Azure portal page using Operations > Run command, so you do not have to sign in to the VM. The page says the tool resets the Windows Update servicing stack, and that the reset can clear memory-related lock states in the update agent.

Run the tool as described, then try the update again. If it still does not install, go to step 5.

Step 5: Install updates individually

Risk: the second command below installs the named update on the computer, and -AcceptAll accepts it without further prompts. An installed update may require a restart. The command has no undo, and Microsoft's page gives no uninstall method, so there is no back-out here; choose the update from the list on purpose. The first command only lists.

If the issue persists, Microsoft's page says to install updates one at a time instead of in batches. It gives two cmdlets for a PowerShell command prompt. Get the list of pending updates:

Get-WindowsUpdate -MicrosoftUpdate

The page does not say which module provides these cmdlets. Microsoft's WindowsUpdate module page lists only Get-WindowsUpdateLog, so they are not part of that module. The PowerShell Gallery page for the PSWindowsUpdate module shows Install-Module -Name PSWindowsUpdate; the module is published by a third party, not by Microsoft. It lists Get-WindowsUpdate and mentions Install-WindowsUpdate in its notes. Microsoft's page does not say to install it. If PowerShell does not recognise the cmdlets on your computer, another way to select one update at a time is the Windows Update settings page; that is general advice, not from Microsoft's page.

To install one of the updates from the list, the page gives:

Install-WindowsUpdate -KBArticleID "KB5XXXXXX" -AcceptAll

In this cmdlet, XXXXXX represents the identification number of the update. To undo it: there is no back-out, as the Risk paragraph above says.

Confirm the fix

  • Run the update again and confirm it installs and reports success.
  • Search WindowsUpdate.log or CBS.log for new lines after the successful install; old 0x80070008 lines stay in the file, so compare timestamps.
  • Check Windows Logs > System for new Resource-Exhaustion-Detector events after the install. A clear log is a good sign; a new event means the computer is still close to its memory limit.
  • If you changed the page file, open the Virtual memory dialog again and confirm the values or the automatic setting are what you intended.

What to watch afterwards

  • The next large update. Microsoft's page says large packages need more memory for extraction and staging, so a computer that passes today with 2 GB may fail on a larger update later.
  • Memory use when updates run. Repeat the Task Manager or PowerShell check while an update installs.
  • Anything you stopped for step 1. Make sure each service and application is running again.
  • The virtual machine's size. If you resized it, check the new size is the one you intended and that its cost is acceptable.

Risks and limits

  • Microsoft's page applies to supported versions of Windows client, Windows Server and Azure virtual machines, with no narrower version range.
  • The page gives no way to test memory fragmentation, so the third cause cannot be confirmed from it.
  • Steps 2 and 4 apply to Azure virtual machines only. For a virtual machine on another platform, the page gives no equivalent steps.
  • These steps were researched from Microsoft's pages and have not been lab-tested.

Sources