The update history viewable on MU/WU is stored in DataStore.edb which
can become corrupted/fragmented due to scanning by antivirus software.
There is another update history stored in ReportingEvents.log located in
%windir%\SoftwareDistribution.
The detection scan hits DataStore.edb causing a buffer overflow.
One can run esentutl from a Command Prompt to defragment DataStore.edb
instead of deleting it in hopes that will resolve the issue -
esentutl /d %windir%\SoftwareDistribution\Datastore\datastore. edb
If that doesn't resolve the issue, attempt to Recover the file -
esentutl /r %windir%\SoftwareDistribution\Datastore\datastore. edb
[This command performs recovery, bringing all databases to a
consistent state]
The next to last resort is to attempt to Repair it -
esentutl /p %windir%\SoftwareDistribution\Datastore\datastore. edb
NOTE: MS recommends that if the system is imaged regularly that a new
system image be done after running ANY of the above operations
* On XP Home Edition, one must stop the Automatic Updates service PRIOR
to running the above. This wasn't the case when doing so on XP Pro *
The *last resort* is to delete DataStore.edb
To mitigate log/database corruption, MS suggests this:
Virus scanning recommendations for computers that are running Windows
Server 2003, Windows 2000, or Windows XP
http://support.microsoft.com/kb/822158
Last Review :October 30, 2006
For computers that are running Windows Server 2003, Windows 2000, or
Windows XP
Do not scan the following files and folders. These files are not at risk
of infection. If you scan these files, serious performance problems may
occur because of file locking.
Where a specific set of files is identified by name, exclude only
those files instead of the whole folder. Sometimes, the whole folder
must be excluded. Do not exclude any one of these based on the file name
extension. For example, do not exclude all files that have a .dit
extension. Microsoft has no control over other files that may use the
same extensions as the following files.
• Microsoft Windows Update or Automatic Update related files
• The Windows Update or Automatic Update database file. This file
is located in the following folder:
%windir%\SoftwareDistribution\Datastore
Exclude the Datastore.edb file.
• The transaction log files. These files are located in the
following folder:
%windir%\SoftwareDistribution\Datastore\Logs
Exclude the following files:
• Edb*.log
Note The wildcard character indicates that there may be several files.
• Res1.log
• Res2.log
• Edb.chk
• Tmp.edb
MowGreen [MVP 2003-2007]
===============
*-343-* FDNY
Never Forgotten
===============
vpc5fan wrote:
> Your batch file will delete the update history for Microsoft Update. Is
> there a reason you feel that is needed?
>
> John
>
>
> "Bill Barrett - GatorPC" wrote:
>
>
>
>>Create a batch file:
>>---------------------------------------------------------------------------------------
>>@echo off
>>
>>net stop "Automatic Updates"
>>net stop "Background Intelligent Transfer Service"
>>
>>RD c:\windows\softwaredistribution /s /q
>>---------------------------------------------------------------------------------------
>
>