Share this article
Improve this guide
How to fix Windows 10 0xc1800118 error on WSUS
3 min. read
Updated onOctober 4, 2023
updated onOctober 4, 2023
Share this article
Improve this guide
Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more
InstallingWindows 10 updatescan sometimes be quite tricky due to all theerrorsthat may occur during and after the installation process. The error message 0xc1800118 is one of the most frequently encounterederrorswhen installingWindows 10updates or newOS builds.
Error 0xc1800118 affects many Windows 10 users
I am receiving “Feature update to windows 10, version 1607error0xc1800118″ and the installation fails. Can anyone shed light on whaterror0xc1800118 means. Thank you
This problem occurs if theWindows 10 Version 1607update is encrypted but does not appear as encrypted in the WSUS Database. Microsoft also explains that this problem may occur if theupdatesare synced before you applyKB3159706.
Steps to fix error 0xc1800118
-
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 tbFilewhere (IsEncrypted = 1 and DecryptionKey is NULL) or (FileName like ‘%14393%.esd’ and IsEncrypted = 0)
-
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
-
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-Englishupdates, 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.
-
Enable the “Upgrades” classification(USS or stand-alone WSUS). Run this PowerShell command:Get-WsusClassification | Where-Object -FilterScript {$_.Classification.Title -Eq “Upgrades”} | Set-WsusClassification
-
Delete files from the tbFile tablein 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)
-
Perform a full sync(USS or stand-alone WSUS) using the following PowerShell command:$sub = $s.GetSubscription()$sub.StartSynchronization()
-
Iferror0xc1800118 still appears on the screen,run the following commandin Command Prompt:
-
Scan forupdates.
RELATED STORIES YOU NEED TO CHECK OUT:
More about the topics:windows 10,windows 10 updates
Madalina Dinita
Networking & Security Specialist
Madalina has been a Windows fan ever since she got her hands on her first Windows XP computer.
She is interested in all things technology, especially emerging technologies – AI and DNA computing in particular.
Prior to joining the WindowsReport team, she worked in the corporate world for a number of years.
User forum
0 messages
Sort by:LatestOldestMost Votes
Comment*
Name*
Email*
Commenting as.Not you?
Save information for future comments
Comment
Δ
Madalina Dinita
Networking & Security Specialist
Madalina is a Windows fan since forever, especially interested in AI, emerging technologies, privacy, and security.