Windows VM Server 2025 consistently fails to install the June security update KB5094125.

Sandip Guria (External) 20 Reputation points
2026-07-06T03:18:53.31+00:00

Windows VM consistently fails to install the June security update KB5094125. with error code -0x8007066A
Then try the below steps-
net stop wuauserv

net stop cryptSvc

net stop bits

net stop msiserver

ren C:\Windows\SoftwareDistribution SoftwareDistribution.old

ren C:\Windows\System32\catroot2 catroot2.old

net start wuauserv

net start cryptSvc

net start bits

net start msiserver

and again, it fails with error code 0x800f0991, could you please guide me what is the possible causes and how can I resolve this issue.

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

0 comments No comments

Answer accepted by question author

AI answer

2026-07-06T03:19:46.16+00:00

The error codes indicate Windows Update component issues on the Windows Server 2025 VM. Use the supported servicing/reset steps and then reinstall the update.

Because this is an Azure VM, back up the OS disk or take a VM snapshot before making changes.

  1. Cleanly reset Windows Update components
    Run these commands in an elevated Command Prompt inside the VM to reset the SoftwareDistribution and Catroot2 folders (similar to what was already tried, but in the documented order):
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver

ren C:\Windows\SoftwareDistribution C:\Windows\SoftwareDistribution.old
ren C:\Windows\System32\catroot2 C:\Windows\System32\catroot2.old

net start wuauserv
net start cryptSvc
net start bits
net start msiserver

This clears the Windows Update data store and download cache, which can fix 0x8007066A/0x800f0991 when they are caused by corrupted update metadata or payload.

  1. Repair possible system corruption
    If the update still fails, repair the servicing stack and system files:
DISM /Online /Cleanup-Image /RestoreHealth
SFC /Scannow

Run DISM first, then SFC. If either reports corruption that is repaired, restart the VM and try installing KB5094125 again.

  1. Use Azure VM Windows Update tools (Azure VMs only)
    For Azure VMs, run the public troubleshooting tools to detect and reset Windows Update issues before contacting support:
  • Azure VM Windows Update Error Detection Tool
  • Azure VM Windows Update Reset Tool

These tools diagnose specific Windows Update errors and reset the Windows servicing stack for Azure VMs.

  1. If the update still fails
    If KB5094125 continues to fail after:
  • Resetting SoftwareDistribution and Catroot2, and
  • Running DISM/SFC, and
  • Using the Azure VM Windows Update tools,

then open a case with Microsoft Support for deeper analysis of CBS.log and WindowsUpdate.log from the VM. Persistent 0x800f0991 after a full reset and repair typically requires detailed log review.


References:

AI-generated content may be incorrect. Read our transparency notes for more information.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.