Clear Windows Update History in Windows 10  

Page 2 of 7 FirstFirst 1234 ... LastLast

  1. Posts : 51
    Win 10 Pro x64
       #10

    Brink said:
    Thank you. I have updated the tutorial for this to make it easier to use.
    I just had a specific case (in build 19041.264): automatically + manually installed updates in WU history.

    The described method for Win10 2004 works perfectly, however Windows 10 makes a difference between automatically installed updates and manually installed updates. The latter will remain in the WU history; to clear them you will have to use the previous method ("1909 and below") in addition.

    @Brink, I think it would make sense to mention this in the tutorial ...

    Thank you.
    Last edited by throkr; 25 May 2020 at 07:12. Reason: typo
      My Computer


  2. Posts : 68,880
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #11

    Thank you @throkr.

    I've updated the .bat for 2004+ to include this.
      My Computers


  3. Posts : 51
    Win 10 Pro x64
       #12

    Great, thank you @Brink.
      My Computer


  4. Posts : 25
    Windows 10 build 18363.535
       #13

    Hello,

    Is it possible to clear only those who have failed? I want to keep only these which are "Successfully installed".
      My Computer


  5. Posts : 68,880
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #14

    martobg10 said:
    Hello,

    Is it possible to clear only those who have failed? I want to keep only these which are "Successfully installed".
    Hello Martin,

    I'm afraid that with the way the database files are saved to for the update history, it's an all or none to clear.
      My Computers


  6. Posts : 1
    Windows 10
       #15

    clear update history for Windows10 version 2004 and above

    run cmd as administrator
    execute the commands sequentially

    net stop wuauserv
    sc config wuauserv start= disabled
    net stop usosvc
    sc config usosvc start= disabled
    DEL /F /S /Q /A %systemroot%\SoftwareDistribution\DataStore\Logs\edb.log
    DEL /F /S /Q /A %ProgramData%\USOPrivate\UpdateStore\*
    sc config wuauserv start= auto
    net start wuauserv
    sc config usosvc start= delayed-auto
    net start usosvc

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

    clear update history for Windows10 version 1909 and below

    run cmd as administrator
    execute the commands sequentially

    net stop wuauserv
    sc config wuauserv start= disabled
    DEL /F /S /Q /A %systemroot%\SoftwareDistribution\DataStore\Logs\edb.log
    sc config wuauserv start= auto
    net start wuauserv
      My Computer


  7. Posts : 190
    Windows 10, 22H2 10.0.19045
       #16

    For those of us who are preventing automatic (as in "forced") updates (I'm using Sledgehammer), would clearing the update history be as simple a creating a bat file with just the "DEL /F /S /Q /A %systemroot%\SoftwareDistribution\DataStore\Logs\edb.log" portion of the above script?
      My Computer


  8. Posts : 68,880
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #17

    Homer712 said:
    For those of us who are preventing automatic (as in "forced") updates (I'm using Sledgehammer), would clearing the update history be as simple a creating a bat file with just the "DEL /F /S /Q /A %systemroot%\SoftwareDistribution\DataStore\Logs\edb.log" portion of the above script?
    Hello Homer,

    The above script is basically what's already in the tutorial, but separated into separate command lines.

    You wouldn't be able to use your command since it's required to stop the two processes first before being able to delete the log file, and then of course start the services again.

    If you like, the tutorial in the first post provides a .bat file for this.
      My Computers


  9. Posts : 190
    Windows 10, 22H2 10.0.19045
       #18

    Brink said:
    Hello Homer,

    The above script is basically what's already in the tutorial, but separated into separate command lines.

    You wouldn't be able to use your command since it's required to stop the two processes first before being able to delete the log file, and then of course start the services again.

    If you like, the tutorial in the first post provides a .bat file for this.
    But with Sledgehammer having already turned off the windows Update Service, all I'm looking to do is delete the logs and NOT turn back on the Update Service.
      My Computer


  10. Posts : 68,880
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #19

    Homer712 said:
    But with Sledgehammer having already turned off the windows Update Service, all I'm looking to do is delete the logs and NOT turn back on the Update Service.
    In that case, that would work if using Windows 10 version 1909 and below.

    If using Windows 10 2004 and above, you would also need to add this command in red below into the line.

    DEL /F /S /Q /A %systemroot%\SoftwareDistribution\DataStore\Logs\edb.log" & del /f /q C:\ProgramData\USOPrivate\UpdateStore\*
      My Computers


 

Tutorial Categories

Clear Windows Update History in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 19:58.
Find Us




Windows 10 Forums