OSBORNEPRO DOCUMENTATION
Windows Update troubleshooting
Have an error code or a Software Center installation failure? Start with the Windows Update error reference for possible causes, the next diagnostic step, and a pre-patch checklist.
Updates fail immediately on every attempt
When a damaged local update cache is blocking installation, rebuilding it lets Windows download fresh update files and retry the KB. Run the reset from an elevated PowerShell window during the maintenance window. It stops BITS, Windows Update and Cryptographic Services, renames SoftwareDistribution and catroot2 with timestamped backup names, then attempts to restart the services it stopped.
$Services = @('bits', 'wuauserv', 'cryptsvc')
$Folders = @(
(Join-Path -Path $env:SystemRoot -ChildPath 'SoftwareDistribution')
(Join-Path -Path $env:SystemRoot -ChildPath 'System32\catroot2')
)
$BackupSuffix = (Get-Date -Format 'yyyyMMdd-HHmmss') + '-' + [guid]::NewGuid().ToString('N').Substring(0, 8)
$StoppedServices = [System.Collections.Generic.List[string]]::new()
try {
foreach ($Name in $Services) {
$Service = Get-Service -Name $Name -ErrorAction Stop
if ($Service.Status -ne 'Stopped') {
$StoppedServices.Add($Name)
Stop-Service -InputObject $Service -ErrorAction Stop
$Service.WaitForStatus('Stopped', [TimeSpan]::FromSeconds(30))
}
}
foreach ($Folder in $Folders) {
if (Test-Path -LiteralPath $Folder -PathType Container -ErrorAction Stop) {
$BackupName = (Split-Path -Path $Folder -Leaf) + '.bak-' + $BackupSuffix
Rename-Item -LiteralPath $Folder -NewName $BackupName -ErrorAction Stop
Write-Output "[UPDATED] Renamed '$Folder' to '$BackupName'."
}
}
} catch {
throw "[FAIL] Windows Update reset stopped. Check the service and folder state before retrying. $($_.Exception.Message)"
} finally {
for ($Index = $StoppedServices.Count - 1; $Index -ge 0; $Index--) {
$Name = $StoppedServices[$Index]
try {
Start-Service -Name $Name -ErrorAction Stop
} catch {
Write-Warning "Could not restart '$Name'. Verify its status. $($_.Exception.Message)"
}
}
}After the reset succeeds, reboot during the approved window, then check for updates again. Windows recreates the folders and downloads needed files. Check the install result and installed KB before removing any backup folders. See Microsoft’s update-component reset example.
If the same KB still fails
Match the failed attempt’s time and error code in %windir%\Logs\CBS\CBS.log. For 0x800f0831, look for Failed to resolve package or a missing manifest. The package named there may be a prerequisite of the KB you tried to install. Find the package identity and check its servicing state.
If the log confirms a missing package and Microsoft’s procedure calls for adding it, obtain the matching KB for that Windows version and architecture from the Microsoft Update Catalog. Follow the KB’s prerequisites and extraction instructions. Replace the example path below with the actual update CAB. For a partially installed package, follow Microsoft’s package-state recovery instructions.
# Example path only. Substitute the verified CAB for this device.
$PackagePath = 'C:\Updates\windows10.0-kb4462937-x64.cab'
if (-not (Test-Path -LiteralPath $PackagePath -PathType Leaf -ErrorAction Stop)) {
throw "Update CAB not found: $PackagePath"
}
DISM.exe /Online /Add-Package "/PackagePath:$PackagePath" /NoRestart
if ($LASTEXITCODE -eq 3010) {
Write-Output 'Package added. Restart Windows to complete servicing.'
} elseif ($LASTEXITCODE -ne 0) {
throw "DISM failed to add the package (exit $LASTEXITCODE). Review the DISM and CBS logs."
}Complete the required restart during the maintenance window, retry the original update, and confirm its installation in Update history or by checking the expected OS build.
Repair the component store and system files
Run DISM first. After it reports success, run SFC and let verification finish. If DISM cannot retrieve repair content on a managed network, use an approved repair source for the installed Windows version. See Microsoft’s DISM and SFC instructions.
DISM.exe /Online /Cleanup-Image /RestoreHealthsfc.exe /scannowComplete pending repairs before retrying the patch. If DISM or SFC reports that a restart is required, reboot during the maintenance window. Pending servicing operations can prevent Windows from starting or completing the next update. After restart, rerun the check if instructed, then retry the failed KB.
Software Center never opens or stays on a blank white screen
Check the SMS Agent Host service (CcmExec) and the client logs under %WINDIR%\CCM\Logs. Start with SCClient_*.log for Software Center, CcmEval.log for client health, and WUAHandler.log for update scans. WSUS by itself does not provide Software Center. See the Configuration Manager log reference.
Record the launch time and match it to the client log entries. A blank window alone does not establish WMI corruption.
If the logs point to WMI, verify repository consistency first.
winmgmt.exe /verifyrepositoryOnly if verification reports inconsistency, confirm you have a recovery plan and run salvage during a maintenance window. Salvage rebuilds an inconsistent repository and attempts to recover readable content. If verification still reports inconsistency, use your Configuration Manager support process. Bulk MOF recompilation and repository reset can affect registered providers and belong in a targeted recovery procedure. See Microsoft’s WMI command reference.
winmgmt.exe /salvagerepository
winmgmt.exe /verifyrepositoryAfter verification reports a consistent repository, reopen Software Center and confirm its content loads. If updates were also affected, run the Software Updates Scan Cycle from the Configuration Manager control panel, confirm the scan completes in WUAHandler.log, and retry the affected update.
Updates stall after moving from NinjaOne to Intune update rings
What happened. After a client moved workstation patching from NinjaOne to Intune, several devices fell behind on security updates. Some were still processing September updates when October updates were available. On the devices tested, removing a local AllowAutoUpdate value set to 0 allowed servicing and outstanding security updates to resume. The exact registry path and the source of the override remain unconfirmed.
Compare the assigned ring with the device
In Intune, open the assigned update ring, note its Automatic update behavior, and check the affected device’s policy status and last check-in. For the Update CSP, AllowAutoUpdate = 0 means Notify download. Users can start the download themselves. If they take no action, installation can wait for the configured deadline. Intune update ring settings · Update CSP values.
| Registry location on the workstation | What to check |
|---|---|
MDM update policyHKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Update |
Read AllowAutoUpdate and compare it with the assigned ring. This is the local view of MDM policy. |
Automatic Updates policyHKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU |
Check the exact value name. NoAutoUpdate = 0 enables automatic updates and 1 disables them. The classic AUOptions value for notifying before download is 2. Record any separate AllowAutoUpdate entry you find. |
Windows Update policyHKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate |
If UseWUServer is enabled under AU, compare the configured WUServer and your scan-source policies with the intended source for quality updates. Check whether an old feature-update target is still assigned. |
The read-only command below also checks Windows Update (wuauserv) and Update Orchestrator (UsoSvc). For example, Start = 4 under HKLM\SYSTEM\CurrentControlSet\Services\wuauserv means the Windows Update service is disabled. A service with a manual startup type can be stopped between scans. Troubleshoot Intune update rings · Windows Update Group Policy settings.
$PolicyLocations = [ordered]@{
'HKLM:\SOFTWARE\Microsoft\PolicyManager\current\device\Update' = @('AllowAutoUpdate')
'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' = @('NoAutoUpdate', 'AUOptions', 'UseWUServer', 'AllowAutoUpdate')
'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate' = @('WUServer', 'WUStatusServer', 'TargetReleaseVersionInfo')
}
$PolicyRows = foreach ($Path in $PolicyLocations.Keys) {
Try {
$Key = if (Test-Path -LiteralPath $Path -ErrorAction Stop) {
Get-Item -LiteralPath $Path -ErrorAction Stop
}
foreach ($Name in $PolicyLocations[$Path]) {
$Value = if ($null -ne $Key) { $Key.GetValue($Name) }
[PSCustomObject]@{
Path = $Path
Name = $Name
Value = if ($null -eq $Value) { 'Not configured here' } else { $Value }
}
}
} Catch {
Throw "Unable to read update policy at '$Path'. $($_.Exception.Message)"
}
}
$PolicyRows | Format-Table -Property Name, Value -GroupBy Path -Wrap
Try {
Get-Service -Name 'wuauserv', 'UsoSvc' -ErrorAction Stop |
Select-Object -Property Name, Status, StartType | Format-Table -AutoSize
} Catch {
Throw "Unable to read Windows Update service status. $($_.Exception.Message)"
}Resolve the conflict and verify recovery
- Compare the affected workstation with a working device in the same ring. Check applied Group Policy, other Intune profiles, and the former patch tool’s policies or scripts to identify what owns the conflicting value.
- Export the affected key and record the value name, type, and data. Retire the conflicting setting at its source. If a value remains after that policy is withdrawn, remove only the confirmed leftover on a pilot workstation. Leave the Intune-managed policy in place.
- Sync the device with Intune, re-read the settings, and run a Windows Update scan. Complete any pending restart in the maintenance window. In Update history, confirm that the expected cumulative update installed and verify the OS build after restart. An older update finishing first does not, by itself, establish that every missed monthly update must be installed in sequence.
Check the feature-update target separately. Windows 11 24H2 Home and Pro reached end of updates on October 13, 2026. Check whether eligible devices are assigned a supported release such as 25H2 or 26H2. The 24H2 Enterprise and Education editions remain in servicing through October 12, 2027. Microsoft’s Windows servicing dates.