Reset Windows Update Agent

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

  • Cannot Access Windows Services
    2 Posts | Last post Sat 11:34 PM
    • First, thank you for posting this tool!  I ran it because I cannot get Microsoft's latest Cumulative Update (KB4013429) to install. recommended running your tool.  Good or bad after running your script I still cannot install KB4013429.  But worse I have lost all access to Windows Services.  I get the message, "An Administrator has blocked you from running this app.  For more information  contact the administrator.  mmc.exe"  Can you help me get it turned back on?  (As an FYI, restarting did nothing.  Also I cannot run Windows Services as an Administrator either. :) )
    • I had to go into my registry wcnsvc and re-enable my user permissions to "Full Control".  Apparently a part of your script is that you changed this from "Full Control" to "Read Only".
  • Download was interrupted
    1 Posts | Last post February 26, 2017
    • Running Windows 7 Home 64 bit + 32 bit with IE 11 and WebRoot SecureAnywhere. Unable to complete download of even after disabling Webroot.  Message appears at apx 1 minute shy of completion that "Download was interrupted".  Could you suggest what might cause the interruption and how to fix?  
      As to Windows Update, have been able to install a few files but many fail.
      Thanks, Manuel.
  • AllowOSUpgrade" "REG_DWORD" "1"
    2 Posts | Last post January 26, 2017
    • Why setting this to "1"     ... We all know this is related to the Aggressive Windows 10 Upgrade campaign ...
    • It was included in the upgrade process which ended more than 6 months ago. This tool is not of obligatory use as it can be seen in its terms and licenses.
  • In the script - a path and a file do not exist - amended script used successfully
    7 Posts | Last post October 21, 2016
    • I have tested an amended form of the script. It now does what I expected it to do. I suggest amending the script to include the additional line 
      del /s /q /f "%ALLUSERSPROFILE%\Microsoft\Network\Downloader\qmgr*.dat"
      I cannot know how many users have this alternative qmgr location. All I know is that both mine do & neither of them has the qmgr location given in the original script. I clean installed Windows 10 on both computers during August.
       At the risk of boring you:-
      1 I thought something needed to be investigated because, after running the original script then manually running Settings, Updates it searched for updates even though it was not connected to the internet or to any other computers and produced results [a list of updates to be downloaded - those that had been found during a previous update search]. So I concluded that the previous update queue had not been cleaned out by the batch file.
       2 After running an amended script that deleted the qmgr files in the alternative location, running Settings, Updates resulted in an almost immediate response that it couldn't connect to the update services [no list of updates was displayed]. This new behaviour makes sense because the computer was still not connected to the internet or any other computers.
      So, the amended script successfully reset Windows update, including the update queue, whereas the original batch file did not.
       The subject is of particular significance to me because I use a metered internet connection and I sometimes run Windows update to see if there is anything large enough to warrant going to the free & fast WiFi in my local library. I need to reset the update queue so that I can run Windows update from a clean start - otherwise it would continue with the existing list of updates and only afterwards would it bother to search for new ones [new ones that might supercede those just installed].
    • Denis, 
      I just checked my Surface Book Win 10 (fully updated as of Oct 11) and it has both of the locations you showed for the qmgr files. Apparently they are aliases, deleting from either location deletes from the other as well. (Just one data point, I have no idea how any other version might work.) 
      I totally identify with your metered connection woes. I often go for two weeks or more without being able to update. Despite keeping the wuauserv service disabled at home, I just found two qmgr files stacked up. It does seem like it takes multiple reboots before it will actually start updating when I do get to a real connection. Maybe deleting the qmgr files would help that? 
    • Loren,
      Yes, some others have also reported that they have both locations.  I have not seen any explanation for the differences but they might be because I recently clean re-installed.  
      TenForums have now amended their script to include both locations so that everybody is catered for, see Windows Update - Reset in Windows 10 [].
      I use a different approach to managing updates.
      - See the MSA article Manage data usage and Windows updates in Windows 10 - WiKi []
      - By basing the update control on the connection's metered property rather than disabling Windows update, rebooting is avoided completely for WiFi connections & is limited to a single reboot {upon removing the metered property} for Ethernet connections.
      - If you have any questions about using the metered property then start a question in the MSA website & post a link to it in that article or post it here.
    • Denis,
      Wow - great post on "metered" updates! I do have my expensive local connections set to metered, and it does help. But when I get to my city Wi-Fi, I almost always have to restart before "automatic" updates will even do the first check, and then several more times to work through each different batch of updates. And too often one of them just hangs up forever. 
      Lately I've been using the MichalGajda PowerShell script for updates: 
      It seems to have some curiosities I don't fully understand yet, or maybe the Windows Update components it uses find the same problems there they do in "automatic" mode, but at least in PowerShell I get feedback about what is happening and can take action immediately instead of restarting and just waiting...  
      (Latest info at the "this gets more complex..." section)
      As for disabling the update service, I believe I'm getting your "the CPU usage suddenly leapt up to almost 100% and stayed there for days" if I leave it running. Actually the "Update Orchestrator Service" is even more likely to trigger CPU overload here, I keep them both disabled. For me it happens much sooner than a month after successful updates. 
      Will be interesting to see if the "Reset Windows Update Agent" script has changed any of this. It apparently did reset my Wi-Fi to non-metered...  The cleanup function got rid of several GB of old junk, so running it was worth it just for that! 
    • Loren,
      I am concerned that out discussion is off-topic here and therefore disconcerting for others monitoring this thread.  If you want to continue then please raise a question in the MSA forum & post a link to your question here or in a Comment to the Wiki article there.
      There is no need to 'restart before "automatic" updates ...' because update can simply be run manually despite the metered setting.
      You should not be getting "batches" of updates in Windows 10.  It is possible for a second run to be needed but I have never seen any more than that.
      There have been several reports of repeatedly failing printer driver updates [not all of them HP ones].  Since you can go to HP directly to get their latest software for your printer, I would suggest turning off all hardware updates using the advice in the Wiki article.  Before you go to HP to see if they have any updated software, please consider their recently-reported drive to block the use of non-HP printer cartridges in their products [My HP printer is two years old so I am not going to bother updating its software any more]
      I tested the reset Windows update components script from TenForums [modified for the additional qmgr location] on a computer with a metered ethernet connection and a computer with a WiFi connection.  Neither one had its metered property altered so I am baffled by your comment about that.  The TenForums script is based on the one from this TechNet thread - I have looked through this version as well but cannot see anything that would reset a metered property.  You would normally only find it has reset if the network driver has been reinstalled, the network has been forgotten or a Windows update has reset it.
      I have not seen the Powershell method before.  I'll have a look at it soon.
    • Hi Denis and Loren,
      Thanks for write. I've been busy and I have not had enough time to investigate about this issue, however, thanks to your contribution I have added the new location in this tool to others with the same problem can find a solution.
      The process of developing a tool like this is quite long and although Microsoft is updating its content constantly, sometimes is not enough.
      I am very grateful for your collaboration to this tool.
      Manuel Gil.
    • My pleasure entirely.  Denis
  • In the script - a path and a file do not exist
    2 Posts | Last post October 21, 2016
    • 1 In the script, the path to the qmgr files does not exist [KB971058 has not been changed, it also still points to this path]
       "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"
       but this one does
       2 Similarly, I cannot find this file anywhere [I included checking on a computer that had items listed in its download queue at Settings, Update]
       Any ideas?
    • Hi Denis,
      I updated this files today 10/21/2016 and I have added the new location in this tool.
      Thanks for your collaboration.
  • Another AV blocking
    2 Posts | Last post October 17, 2016
    • Hi,
      When downloading Trend Micro is blocking the file as Trojan.
      Not sure why your .zip is triggering this, I'm not having this issue with other scripts.
    • Hi Kunzite_,
      The file "Info.txt" described with more detail the issue.
      Also, you can see in the comments information regarding this file.
  • 0kb
    2 Posts | Last post October 17, 2016
    • Hi, 
      same problem here... 
      IE, EDGE, Firefox. 0kb .zip archive. 
    • Hi Tomáš Kalabis,
      I updated this files today 10/17/2016.
      For a little more detail the file:
      MD5:    34b58b743493bd908f10152c05ef7a42
      SHA1:    2cb0bc4ec499d143cecbfb484f9734ce6d53bd2d
      File size:    626.0 KB ( 641066 bytes )
      File type:    ZIP
      Please, try again.
  • Eng file is broken
    4 Posts | Last post October 12, 2016
    • Hi,
      It looks like the Eng version is a 0Kb file, the spanish version is ok though.
    • Hi Mark.
      I updated this files today 09/22/2016. The size of the file is:
      English version.
      | Name           | Size          |
      | Help.chm       | 636.687 bytes |
      | Icon.ico       |  32.038 bytes |
      | Info.txt       |     910 bytes |
      | Integrity.txt  |   1.310 bytes |
      | Launcher.exe   | 127.912 bytes |
      | License.pdf    |   6.062 bytes |
      | Readme.txt     |     631 bytes |
      | ResetWUEng.cmd |  28.128 bytes |
      | | 696.491 bytes |
      Spanish version.
      | Name           | Size          |
      | Ayuda.chm      | 637.607 bytes |
      | Icon.ico       |  32.038 bytes |
      | Info.txt       |     763 bytes |
      | Integrity.txt  |   1.332 bytes |
      | Launcher.exe   | 127.924 bytes |
      | License.pdf    |   6.062 bytes |
      | Readme.txt     |     655 bytes |
      | ResetWUSpa.cmd |  29.991 bytes |
      | | 697.777 bytes |
    • Dear Manuel,
      It looks the zip file of ENG version is still 0kb after download.
    • Hi,
      Problem solved. It looks IE can download the right file, but chrome cannot.
  • Caution
    2 Posts | Last post October 01, 2016
    • I'm hesitant to run your script since AVG identify Launcher.exe as
      Especially since your script requires elevated privileges (running as administrator).
      Can you describe Launcher.exe in a bit more detail, like who wrote is (is it you or 3th party), what does it do and why would AVG identify it as a trojan?
    • Hi dotnetCarpenter2,
      In the file "Info.txt" is described with a little more detail the file "Launcher.exe".
      Also, you can see in the comments information regarding this file.
  • Brilliant!
    2 Posts | Last post September 15, 2016
    • also works on 2008 R2 server -even though it detects as Win 7 :-)
      thanks for a great little tool.
    • Thank you!!
      It's correct, Windows Server and Home versions share some builds e.g.:
      Build 	5.2.3790
      Windows XP Professional x64 Edition
      Windows Server 2003
      Windows Home Server
      Build	6.0.6001
      Windows Vista SP1
      Windows Server 2008 SP1
      Build	6.0.6002
      Windows Vista SP2
      Windows Server 2008 SP2
      Build	6.1.7600
      Windows 7
      Windows Server 2008 R2
      Build	6.1.7601
      Windows 7 SP1
      Windows Server 2008 R2 SP1
      Build	6.3.9600
      Windows 8.1 Update 1
      Windows Server 2012 R2
1 - 10 of 22 Items