Error 0xc1800118 affects many Windows 10 users

This problem occurs if the Windows 10 Version 1607 update is encrypted but does not appear as encrypted in the WSUS Database. Microsoft also explains that this problem may occur if the updates are synced before you apply KB3159706.

Steps to fix error 0xc1800118

  1. Detect whether WSUS is in a bad state, which is indicated by a “TotalResults > 0” result.To do this, run the following query: select TotalResults = Count(*) from tbFile where (IsEncrypted = 1 and DecryptionKey is NULL) or (FileName like ‘%14393%.esd’ and IsEncrypted = 0)
  2. Disable the “Upgrades” classification (USS or stand-alone WSUS). To do this, run the following command in PowerShell: Get-WsusClassification | Where-Object -FilterScript {$_.Classification.Title -Eq “Upgrades”} | Set-WsusClassification -Disable
  3. Delete the previously synched upgrades (all WSUS – start at the topmost server). Run this PowerShell command: $s = Get-WsusServer $1607Updates = $s.SearchUpdates(“version 1607”) $1607Updates | foreach { $.Decline() } $1607Updates | foreach { $s.DeleteUpdate($.Id.UpdateId) } In the second command, “version 1607” represents English language updates. For non-English updates, substitute the language-appropriate titles for the SearchUpdates string. Important note: You may have the impression that Powershell fails to do anything. You won’t be able to type commands, as the tool just hangs there. Deleting the upgrades can sometime take more than 30 minutes.  Just let it run until you get back to a prompt.
  4. Enable the “Upgrades” classification (USS or stand-alone WSUS). Run this PowerShell command: Get-WsusClassification | Where-Object -FilterScript {$_.Classification.Title -Eq “Upgrades”} | Set-WsusClassification
  5. Delete files from the tbFile table in the WSUS database (all WSUS – start at the topmost server) using this command: declare @NotNeededFiles table (FileDigest binary(20) UNIQUE); insert into @NotNeededFiles(FileDigest) (select FileDigest from tbFile where FileName like ‘%14393%.esd’ except select FileDigest from tbFileForRevision); delete from tbFileOnServer where FileDigest in (select FileDigest from @NotNeededFiles) delete from tbFile where FileDigest in (select FileDigest from @NotNeededFiles)
  6. Perform a full sync (USS or stand-alone WSUS) using the following PowerShell command: $sub = $s.GetSubscription() $sub.StartSynchronization()
  7. If error 0xc1800118 still appears on the screen, run the following command in Command Prompt:

net stop wuauserv del %windir%SoftwareDistributionDataStore*

  1. Scan for updates. RELATED STORIES YOU NEED TO CHECK OUT:

Fix: Update Error 0x80245006 in Windows 10 Fix: Update Error Code 0x80072efd in Windows 10 Fix: Updates and Settings not Opening in Windows 10

SPONSORED Name * Email * Commenting as . Not you? Save information for future comments
Comment

Δ