Author Topic: Windows Rollup KB4093118 Failed: 80004005 (SOLVED! FOR MANY UPDATE KB, FINALLY!)  (Read 19170 times)

0 Members and 1 Guest are viewing this topic.

Offline dugadugadid

  • Newbie
  • *
  • Join Date: Mar 2018
  • Posts: 29
  • Karma: 0
    • View Profile
Same error I was having last month, was only able to fix this doing a Dist Upgrade.

Surt found no errors; SFC fix found no errors. WindowsUpdate.diagcab found no errors. Disabled all AV's & third party protection same errors. Clean boot, same errors.
sfc /scannow no errors

Surt:

=================================
Checking System Update Readiness.
Binary Version 6.1.7601.22471
Package Version 26.0
2018-04-11 21:31

Checking Windows Servicing Packages
Checking Package Manifests and Catalogs
Checking Package Watchlist
Checking Component Watchlist
Checking Packages
Checking Component Store

Summary:
Seconds executed: 93
No errors detected

=================================

SFCFix version 3.0.0.0 by niemiro.
Start time: 2018-04-11 22:47:24.213
Microsoft Windows 7 Service Pack 1 - amd64
Not using a script file.

AutoAnalysis::
SUMMARY: No corruptions were detected.
AutoAnalysis:: directive completed successfully.

Successfully processed all directives.
SFCFix version 3.0.0.0 by niemiro has completed.
Currently storing 1 datablocks.
Finish time: 2018-04-11 22:48:38.032
----------------------EOF-----------------------

Can someone export and provide me a clean backup of the following Windows 7 SP1 key?
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server

Attached CBS.log

https://mega.nz/#!nqITTDSY!tT0ysW0VMroMfBFyeqgsX8Q5KuGojm7rphyXZLS82vM

For me the problem resides with peerdist; I had already disabled it under services and its dependency "http" after the dist upgrade and updating windows.

Another user claimed the following:

I can also attest that IIS seemed to be the culprit for me.
I disabled the services World Wide Web Publishing Service, IIS Admin Service and some others for good measure, set them all to manual, rebooted, then tried to install SP1 RC Refresh and that finally succeeded.
 I would get certain GUIDs in my CBS.log:

 
Code Block
2008-01-17 12:28:30, Error                 CSI    00000d42 (F) Failed execution of queue item Installer: Task Scheduler ({386b5911-b69e-4d2d-a3ab-796d2ec6af38}) with HRESULT 80041315 [Error,Facility=FACILITY_ITF,Code=4885 (0x1315)].  Failure will not be ignored: A rollback will be initiated after all the operations in the installer queue are completed; installer is reliable (2)[gle=0x80004005]
    Old component: Microsoft-Windows-IIS-HttpErrors, Version = 6.0.6000.16386, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral
    New component: Microsoft-Windows-IIS-HttpErrors, Version = 6.0.6001.17128, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral
CSIPERF:AIDONE;{81a34a10-4256-436a-89d6-794b97ca407c};Microsoft-Windows-IIS-HttpErrors, Version = 6.0.6001.17128, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral;274
2008-01-17 12:28:41, Error                 CSI    00000f12 (F) Done with generic command 110 (0x0000006e); CreateProcess returned 0, CPAW returned S_OK
Url reservation add failed, Error: 6



associated threads
https://social.technet.microsoft.com/Forums/windows/en-US/190d5c04-a096-4546-a19b-2c4a84dfebe4/windows-rollup-kb4093118-failed-80004005?forum=w7itproinstall
https://www.sysnative.com/forums/windows-update/25172-windows-rollup-kb4093118-failed-80004005-a.html#post215693

« Last Edit: April 12, 2018, 06:25:42 am by dugadugadid »

Offline dugadugadid

  • Newbie
  • *
  • Join Date: Mar 2018
  • Posts: 29
  • Karma: 0
    • View Profile
Re: Windows Rollup KB4093118 Failed: 80004005
« Reply #1 on: April 11, 2018, 11:25:12 pm »

My error:


2018-04-11 21:49:27, Info                  CSI    0000002e Begin executing advanced installer phase 24 (0x00000018) index 35 (0x0000000000000023) (sequence 60)
    Old component: [ml:302{151},l:300{150}]"Microsoft-Windows-PeerDist, Culture=neutral, Version=6.1.7600.16385, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=amd64, versionScope=NonSxS"
    New component: [ml:302{151},l:300{150}]"Microsoft-Windows-PeerDist, Culture=neutral, Version=6.1.7601.24000, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=amd64, versionScope=NonSxS"
    Install mode: uninstall
    Installer ID: {c145fd5d-1b9b-4738-9961-64034a3da28f}
    Installer name: [27]"Generic Command (uninstall)"
2018-04-11 21:49:27, Info                  CSI    0000002f Performing 1 operations; 1 are not lock/unlock and follow:
  LockComponentPath (10): flags: 0 comp: {l:16 b:de811fa319d2d301170000009004d804} pathid: {l:16 b:de811fa319d2d301180000009004d804} path: [l:210{105}]"\SystemRoot\WinSxS\amd64_microsoft-windows-peerdist_31bf3856ad364e35_6.1.7600.16385_none_7919860403cdb261" pid: 490 starttime: 131679821449796395 (0x01d3d219959a1b2b)
2018-04-11 21:49:27, Info                  CSI    00000030 Performing 1 operations; 1 are not lock/unlock and follow:
  LockComponentPath (10): flags: 0 comp: {l:16 b:de811fa319d2d301190000009004d804} pathid: {l:16 b:de811fa319d2d3011a0000009004d804} path: [l:210{105}]"\SystemRoot\WinSxS\amd64_microsoft-windows-peerdist_31bf3856ad364e35_6.1.7601.24000_none_7bdab59f19d5b271" pid: 490 starttime: 131679821449796395 (0x01d3d219959a1b2b)
2018-04-11 21:49:27, Info                  CSI    00000031 Calling generic command executable (sequence 1): [29]"C:\Windows\System32\netsh.exe"
    CmdLine: [100]""C:\Windows\System32\netsh.exe" http delete urlacl http://+:80/116B50EB-ECE2-41ac-8429-9F9E963361B7/"
2018-04-11 21:49:27, Info                  CSI    00000032 Performing 1 operations; 1 are not lock/unlock and follow:
  LockComponentPath (10): flags: 0 comp: {l:16 b:5f0729a319d2d3011b0000009004d804} pathid: {l:16 b:5f0729a319d2d3011c0000009004d804} path: [l:234{117}]"\SystemRoot\WinSxS\x86_microsoft.windows.s..ation.badcomponents_31bf3856ad364e35_6.1.7600.16385_none_3868158f24725705" pid: 490 starttime: 131679821449796395 (0x01d3d219959a1b2b)
2018-04-11 21:49:27, Info                  CSI    00000033 Creating NT transaction (seq 1), objectname [6]"(null)"
2018-04-11 21:49:27, Info                  CSI    00000034 Created NT transaction (seq 1) result 0x00000000, handle @0x264
2018-04-11 21:49:27, Info                  CSI    00000035@2018/4/12:04:49:27.757 CSI perf trace:
CSIPERF:TXCOMMIT;28878
2018-04-11 21:49:27, Error      [0x01800a] CSI    00000036 (F) Done with generic command 1; CreateProcess returned 0, CPAW returned S_OK
    Process exit code 1 resulted in success? FALSE
    Process output: [l:71 [71]"

URL reservation delete failed, Error: 6

The handle is invalid.





"][gle=0x80004005]
2018-04-11 21:49:27, Info                  CSI    00000039@2018/4/12:04:49:27.804 CSI Advanced installer perf trace:
CSIPERF:AIDONE;{c145fd5d-1b9b-4738-9961-64034a3da28f};Microsoft-Windows-PeerDist, Version = 6.1.7601.24000, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral;146387
2018-04-11 21:49:27, Error      [0x018008] CSI    0000003a (F) Failed execution of queue item Installer: Generic Command (uninstall) ({c145fd5d-1b9b-4738-9961-64034a3da28f}) with HRESULT HRESULT_FROM_WIN32(14109).  Failure will not be ignored: A rollback will be initiated after all the operations in the installer queue are completed; installer is reliable (2)[gle=0x80004005]
2018-04-11 21:49:27, Info                  CSI    0000003b End executing advanced installer (sequence 60)
    Completion status: HRESULT_FROM_WIN32(ERROR_ADVANCED_INSTALLER_FAILED)



2018-04-11 21:50:41, Info                  CSI    000000b3 Begin executing advanced installer phase 38 (0x00000026) index 58 (0x000000000000003a) (sequence 97)
    Old component: [ml:302{151},l:300{150}]"Microsoft-Windows-PeerDist, Culture=neutral, Version=6.1.7600.16385, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=amd64, versionScope=NonSxS"
    New component: [ml:302{151},l:300{150}]"Microsoft-Windows-PeerDist, Culture=neutral, Version=6.1.7601.24000, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=amd64, versionScope=NonSxS"
    Install mode: install
    Installer ID: {81a34a10-4256-436a-89d6-794b97ca407c}
    Installer name: [15]"Generic Command"
2018-04-11 21:50:41, Info                  CSI    000000b4 Calling generic command executable (sequence 19 (0x00000013)): [29]"C:\Windows\System32\netsh.exe"
    CmdLine: [121]""C:\Windows\System32\netsh.exe" http add urlacl url=http://+:80/116B50EB-ECE2-41ac-8429-9F9E963361B7/ sddl=D:(A;;GX;;;NS)"
2018-04-11 21:50:41, Error      [0x01800a] CSI    000000b5 (F) Done with generic command 19 (0x00000013); CreateProcess returned 0, CPAW returned S_OK
    Process exit code 1 resulted in success? FALSE
    Process output: [l:68 [68]"

Url reservation add failed, Error: 6

Offline dugadugadid

  • Newbie
  • *
  • Join Date: Mar 2018
  • Posts: 29
  • Karma: 0
    • View Profile
Re: Windows Rollup KB4093118 Failed: 80004005
« Reply #2 on: April 11, 2018, 11:56:46 pm »
how can I uninstall peerdist (aka branch cache) manually? or how can i modify the windows update to disclude peerdist from installing?

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: Windows Rollup KB4093118 Failed: 80004005
« Reply #3 on: April 12, 2018, 02:16:58 am »
You wouldn't normally post the same problem on more than one forum unless you didn't get a response, such as you have on the Windows forum in your first link.

How did you ID that registry key that you want a copy of ?

It won't be until much later today that I'll have access to my Win 7 x64 SP1 machine and I'll try and copy that key for you, but you may need to take ownership of it.

You can add Take Ownership to your right click context menu, so when you right click on it, you then select Take Ownership.

Scroll down to the bottom of this article and click on the blue link for Take Ownership Menu Hacks - https://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/

As for the rest of your requests, I'll have to pass those onto my Support.

Offline dugadugadid

  • Newbie
  • *
  • Join Date: Mar 2018
  • Posts: 29
  • Karma: 0
    • View Profile
Re: Windows Rollup KB4093118 Failed: 80004005
« Reply #4 on: April 12, 2018, 02:55:24 am »
This issue was such a pain I have decided to take the path of least resistance and get as much support as possible; everything found as an answer anywhere will be mentioned at all of the forums so it will be much easier for people to find the answer should one arise;

I am currently editing the cab files, and have removed all references to peerdist in _manifest_.cix.xml found in Windows6.1-KB4093118-x64.cab; hopefully that will be enough, there are other files that contain references to individual updates inside WSUSSCAN.cab but they are all given ids that don't appear to relate to anything I could find in cbs.log and no obvious reference to peerdist. I've recompiled the updated cab, and extracted the certificates from the original cab and am searching for a way to embed them into my new updated cab file; if this works, then ill have a workaround for every monthly roundup that comes along.
« Last Edit: April 12, 2018, 03:45:19 am by dugadugadid »

Offline dugadugadid

  • Newbie
  • *
  • Join Date: Mar 2018
  • Posts: 29
  • Karma: 0
    • View Profile
Re: Windows Rollup KB4093118 Failed: 80004005
« Reply #5 on: April 12, 2018, 03:42:24 am »
I ID'd the registry key because it is the only one in which I have actually removed entries pointing to system files; I wonder if this is the reason for the Windows Update failure; however it has nothing to do with peerdist.  The only thing related to peerdist aka branch cache that I have done was disabled the service peerdistsvc and its dependency http; and disabled peer caching for bits under group policy and "do not allow the computer to act as a bits peercaching server" and "do not allow the computer to act as a bits peercaching client" the two of which are (and I may be mistaken)  apparently related to branch caching.
« Last Edit: April 12, 2018, 04:03:45 am by dugadugadid »

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: Windows Rollup KB4093118 Failed: 80004005
« Reply #6 on: April 12, 2018, 03:46:39 am »
You shouldn't have to chew on like this every month just to get Windows updates and I'm surprised a repair install didn't fully resolve the problem.

That Access Denied error code is a PITA.

Do you still want me to copy that registry key later when I'm able to get onto my Win 7 machine ?

Just seen your latest reply - do you have restore points that will take you back to before you removed those items ?

It's always prudent to create a restore point before making major changes to the registry.

Offline dugadugadid

  • Newbie
  • *
  • Join Date: Mar 2018
  • Posts: 29
  • Karma: 0
    • View Profile
Re: Windows Rollup KB4093118 Failed: 80004005
« Reply #7 on: April 12, 2018, 05:49:21 am »
I already made so many changes that I would be better off doing a dist upgrade again, probably will have to every month until this is figured out.  Would love an original copy of the reg files... that would help me a lot, and i can add them in by hand anyway just for the entries that i removed.

Offline dugadugadid

  • Newbie
  • *
  • Join Date: Mar 2018
  • Posts: 29
  • Karma: 0
    • View Profile
Re: Windows Rollup KB4093118 Failed: 80004005
« Reply #8 on: April 12, 2018, 05:50:57 am »
I don't have a restore point going back that far and if i did it would uninstall everything on my computer; I tried editing the cab files and the install threw me an error; the certs i exported ensure the install files haven't been tampered with so I doubt that route will work,  and I haven't figured out how to use signtool.exe to sign it with them properly, it tells me "SignTool Error: No certificates were found that met all the given criteria."
« Last Edit: April 12, 2018, 05:54:23 am by dugadugadid »

Offline dugadugadid

  • Newbie
  • *
  • Join Date: Mar 2018
  • Posts: 29
  • Karma: 0
    • View Profile
Re: Windows Rollup KB4093118 Failed: 80004005
« Reply #9 on: April 12, 2018, 05:56:27 am »
One of the things that persisted after a dist upgrade was most of the registry tweaks i used to harden my machine, including the majority of changes to terminalservices, the missing entries were still missing and I was able to install the updates after the restore which prior-to were dropping the same errors they are now.

Offline dugadugadid

  • Newbie
  • *
  • Join Date: Mar 2018
  • Posts: 29
  • Karma: 0
    • View Profile
Re: Windows Rollup KB4093118 Failed: 80004005
« Reply #10 on: April 12, 2018, 06:20:46 am »
Solved, 2 months later! After 3 dist upgrades!

So I finally solved this Windows / Update BUG, it and it was as simple as this; set peerdissvc (under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\) (aka branchcache as it is known under services.msc) from disabled back to manual, along with its dependency http, to manual. I'm quite sure setting branchcache to manual was all that was necessary for the fix to take place; I also had set "not configured" to alll changes I had made to "Background Intelligence Transfer Service" under group policy regarding peer caching. I had tried the latter before the last 3 distupgrades and it did not make any difference; so it seems windows update fails if you disable branchcache, which is typically only used by businesses anyway, so many people recommend to disable it, for security reasons also. What a headache; I spent at least a 80 hours, and weeks, and months trying to figure this one out; Windows update has turned into a bunch of bull***** with their ROLLUPS; one error on one of 130 little updates and the whole shebang goes down with the ship; dumbest idea ever for their update platform; they should change to individual updates and do it quick.

This is a MICROSOFT WINDOWS UPDATE BUG. You shouldn't have to enable or disable any built in windows service to get a "windows" update working. What a headache.

SO for all of you 80004005 victims out there; check your C:\Windows\Logs\CBS\cbs.log; search for "error" or "Failed execution" know very well whatever app is failing to install, be it IIS as quoted below-> they disabled IIS and it fixed their problem, or peerdist -> I had to set it from disabled TO manual, so make sure you fiddle with enabling or disabling the failing install service using services.msc or under the registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\

Change the entry "start" to demand or auto, or disable if it was already enabled, reboot, then try your update.

0 Boot
1 system
2 Automatic
3 Demand (aka manual)
4 Disabled





Another user claimed the following:

I can also attest that IIS seemed to be the culprit for me.
I disabled the services World Wide Web Publishing Service, IIS Admin Service and some others for good measure, set them all to manual, rebooted, then tried to install SP1 RC Refresh and that finally succeeded.
 I would get certain GUIDs in my CBS.log:

 
Code Block
2008-01-17 12:28:30, Error                 CSI    00000d42 (F) Failed execution of queue item Installer: Task Scheduler ({386b5911-b69e-4d2d-a3ab-796d2ec6af38}) with HRESULT 80041315 [Error,Facility=FACILITY_ITF,Code=4885 (0x1315)].  Failure will not be ignored: A rollback will be initiated after all the operations in the installer queue are completed; installer is reliable (2)[gle=0x80004005]
    Old component: Microsoft-Windows-IIS-HttpErrors, Version = 6.0.6000.16386, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral
    New component: Microsoft-Windows-IIS-HttpErrors, Version = 6.0.6001.17128, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral
CSIPERF:AIDONE;{81a34a10-4256-436a-89d6-794b97ca407c};Microsoft-Windows-IIS-HttpErrors, Version = 6.0.6001.17128, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral;274
2008-01-17 12:28:41, Error                 CSI    00000f12 (F) Done with generic command 110 (0x0000006e); CreateProcess returned 0, CPAW returned S_OK
Url reservation add failed, Error: 6

« Last Edit: April 12, 2018, 07:33:59 am by dugadugadid »

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Good to see you have found the cause and I've unlocked your other thread as requested.

I've exported and attached the Terminal Server registry item if you still want it.

I think I've done it right as this is the first time I've attached an exported reg item.

If you do decide to merge it, create a restore point first.

This is from Win 7 x64 SP1 Home Premium.

Offline dugadugadid

  • Newbie
  • *
  • Join Date: Mar 2018
  • Posts: 29
  • Karma: 0
    • View Profile
Thank you so much for your help and support! Much appreciated  :cheesy:

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
You're welcome, but it was you who found the fix.