Reset Windows Update Agent

This Script allow reset the Windows Update Agent resolving issues with Windows Update.
4.6 Star
565,378 times
Add to favorites
Windows Update
E-mail Twitter Digg Facebook
Sign in to ask a question

  • Option #11 changes Insider Ring to "Custom"
    3 Posts | Last post July 10, 2019
    • in term that prevents the update from coming in
    • You are awesome, man! :)
    • Thanks EQuito!
  • Fix corrupted registry.pol?
    4 Posts | Last post May 25, 2019
    • A corrupted registry.pol will prevent gpos from applying and software updates from installing via SCCM. It usually corrupts due to missing AV exclusions. I have a script that will detect if it's corrupt or not and delete it if so if you're interested in it?
    • Hi Russ,
      Of course! this tool is built for the users. Any contribution is well received.
      Thank so much!
    • If it's corrupted, it's always full of NULLs/whitespace.  If it's not corrupt, the byte encoded value of the first 4 lines of it will always equal a value of 8082101103. When it's corrupt, there's always a -2147467259 or 0x80004005 in wuahandler.log if using SCCM. There should be various GPO failures in the eventlogs as well when it's broke.
      Function Test-IsRegistryPOLGood
                          [string[]]$PathToRegistryPOLFile = $(Join-Path $env:windir 'System32\GroupPolicy\Machine\Registry.pol')
              if(!(Test-Path -Path $PathToRegistryPOLFile -PathType Leaf)) { return $null }
              [Byte[]]$FileHeader = Get-Content -Encoding Byte -Path $PathToRegistryPOLFile -TotalCount 4
              if(($FileHeader -join '') -eq '8082101103') { return 'Compliant' } else { return 'Not-Compliant' }
    • I'm sorry for being late.
      I'll try implement this PowerShell script in my Windows Shell Script.
      Thank you so much.
  • I have translated the last version into German
    4 Posts | Last post May 16, 2019
    • How i can send it to you for distribution.
      you can find it here:!Ahekt4Y668a52ctnTz-Cq0bj47U1ug?e=zxIkgT
      The only additional text is bei comment in the TOP stating the translation by me.
    • Hi Alexander Jacubowsky (AJEDV),
      Do you agree that I created a post on TechNet and publish it on for distribution? Obviously, the credits to your name will be kept.
    • Sure, that's what I expected.
      Thank you.
    • It's done!
      Skript Reset Windows Update Tool (Deutsch) -
  • Run script silently
    2 Posts | Last post May 03, 2019
    • Is it possible to run the command line tool remotely from something like PDQ deploy without any user prompts and run the command line tool silently in the background.
      Love the tool, but would be awesome if i could run the commands without any user intervention.
    • Thanks philly169,
      It's possible with the executable version.
      You can create a self-extracting file with WinRAR for run in background.
      For example:
      Setup=wureset.exe /reset
      Also, you can run this tool automatically using Windows Task Scheduler or Regedit.
      Download the executable version in and see more about command line arguments in in the section `Getting started` > `command line`.
  • Run this for multiple machines?
    2 Posts | Last post April 29, 2019
    • Is it possible to batch run this for multiple machines? 
    • Hi Shadowz1337,
      This tool has changed a lot and the installable or portable version allows to execute commands from cmd.
      You can download this in or see more in in the section `Getting started` > `command line`.
  • Thank's a lot Manuel
    2 Posts | Last post April 26, 2019
    • Your tool is awesome and saved my installation several times!
    • I'm happy to read your comment. Thanks!
  • Thanks Manuel F. Gil
    2 Posts | Last post April 21, 2019
  • Does it reset SusClientID?
    3 Posts | Last post April 15, 2019
    • Hi Manuel
      great job, your solution fix my tons of clients that report uncorrect version and/or uncorrect date of contact in wsus.
      Does "Resets the Windows Update Components" recreate the SusClientID?
      When you clone a lot of pc you have to reset SusClientID otherwise on wsus console all look like the same record.
      Before your cmd, sometimes (not often) i recreated SusClientID and it also fixed wsus agent problem.
    • Thank you Luca,
      The reset SusClientID option it's distributed in several options:
      * Deletes any incorrect registry values. This option removes some Windows Update registry keys such as the following: SusClientId, SusClientIdValidation, PingID, AccountDomainSid.
      * Searches Windows updates. This option runs the command to force a check-in to the WSUS server: wuauclt /resetauthorization /detectnow command
      I recommend the following sequence to reset SusClientID: Deletes any incorrect registry values, Resets the Windows Update Components And Searches Windows updates.
      I hope this is helpful to you.
    • Hi Luca,
      Due to the need for a tool that can perform this task, I have created a small script for it:
  • Very niche
    2 Posts | Last post April 15, 2019
  • Command Line Switches
    4 Posts | Last post March 07, 2019
    • Hello Manuel!!! Let me start with how awesome your tool is. I've been able to fix countless Windows Update errors thanks to it.
      Writing to confirm if there's a bug or if I'm simply not using the WUReset script correctly. 
      Trying to get it to run via command line. So, opening my prompt via Run as Admin, typing "resetWUEng.bat /reset /clean:temp" or "resetWUEng.bat WURESET /reset /clean:temp" Both cases, the script launches, and I'm presented with the Terms and Conditions of Use. How can I skip this? is there an hidden parameter I'm missing?
    • Hi Stephane.Faubert,
      Thank for your comments.
      Apparently there is a misunderstanding, since the commands mentioned are used with the executable version(WURESET.exe).
      The execuable version contains some additional features, but in general, it fulfills the same functions as this version
      Please, download it on and try again.
      I hope this is helpful to you.
    • Ohhhhh!!! That explains why :) Ok I will try it out. Thanks a bunch!
    • Here is the list of options:
      Open System Properties.
      Reset the Windows Update Components.
      Delete temporary files in Windows.
      Open Internet Explorer options.
      Run Chkdsk on the partition Windows is installed on.
      Run the System File Checker tool.
      Scan the image for component store corruption.
      Check the image for corruption or other issues.
      Perform repair operations automatically.
      Clean up superseeded components.
      Delete incorrect Registry values.
      Repair / Reset Winsock.
      Force Group Policy Update.
      Search for Windows Updates.
      Explorer other local solutions.
      Explorer other online solutions.
      Download Diagnostic Tools.
      Restart the PC.
      While it is clear automatically what some options do, e.g. Open System Properties, it may not be clear what others such as "Delete incorrect Registry values" do.
      The only option to find out is to open the script in a plain text editor and check the relevant parts of it to see what it does.
      The temporary file cleaning part for instance uses the two commands del /s /f /q "%TEMP%\*.*" and
      del /s /f /q "%SYSTEMROOT%\Temp\*.*" to remove files from system temp folders.
      Some operations run lots of commands. If you select to reset Windows Update components, a series of commands is executed that include stopping services, killing tasks, deleting files, registering files again and more.
1 - 10 of 79 Items