Failed to open event cache file at C:\WINDOWS\SoftwareDistribution\EventCache

Reading Time: 2 minutes

1) Copy and paste the below into a notepad, rename to a .bat and run:

net stop wuauserv
regsvr32 /s wuapi.dll
regsvr32 /s wups.dll
regsvr32 /s wuaueng.dll
regsvr32 /s wucltui.dll
regsvr32 /s wuweb.dll
regsvr32 /s wups2.dll
regsvr32 /s msxml3.dll
regsvr32 /s atl.dll
regsvr32 /s qmgrprxy.dll
regsvr32 /s wuanueng1.dll
regsvr32 /s atl.dll
regsvr32 /s msxml.dll
regsvr32 /s msxml2.dll
regsvr32 /s qmgr.dll

c:
cd %windir%\SoftwareDistribution
rd /s/q DataStore
mkdir DataStore
rd /s/q Download
mkdir Download
net start wuauserv
rem Fixes problem with client machines not showing up on the server
rem due to imaging method
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v SusClientId /f
cls
@echo Triggering detection after resetting WSUS client identify
net stop “Automatic Updates”
net start “Automatic Update”
wuauclt /resetauthorization /detectnow
echo susid set to unique>c:\wsusfix.txt

2) After running the above, do the same with the below:

@echo off
Echo This batch file will Force the Update Detection from the AU client:
Echo 1. Stops the Automatic Updates Service (wuauserv)
Echo 2. Deletes the LastWaitTimeout registry key (if it exists)
Echo 3. Deletes the DetectionstartTime registry key (if it exists)
Echo 4. Deletes the NextDetectionTime registry key (if it exists)
Echo 5. Restart the Automatic Updates Service (wuauserv)
Echo 6. Force the detection
Pause
@echo on
net stop wuauserv
REG DELETE “HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update” /v LastWaitTimeout /f
REG DELETE “HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update” /v DetectionstartTime /f
REG DELETE “HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update” /v NextDetectionTime /f
net start wuauserv
wuauclt /detectnow
@echo off
Echo This AU client will now check for the Updates on the Local WSUS Server.
Pause

And finally this:

@echo off
net stop wuauserv
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v PingID /f 2>nul: 1>nul:
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v AccountDomainSid /f 2>nul: 1>nul:
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v SusClientId /f 2>nul: 1>nul:
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v SusClientIdValidation /f 2>nul: 1>nul:
net start bits 2>nul: 1>nul:
net start wuauserv
wuauclt /resetauthorization /detectnow

Note: you may need to re enter the speech marks (“) after copying and pasting the above codes.

One thought on “Failed to open event cache file at C:\WINDOWS\SoftwareDistribution\EventCache

  1. Just wanted to say thanks, this helped one of my troublesome machines. I still have one that is insisting to fail on error 0x80072ee2 even after using your method which is expanded on the method I know.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.