Reset Windows Update Agent

This Script allow reset the Windows Update Agent resolving issues with Windows Update.

ResetWUEng.zip
 
 
 
 
 
4.4 Star
(103)
244,833 times
Add to favorites
Windows Update
4/12/2017
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Upgrade
    4 Posts | Last post April 14, 2017
    • Can you upgrade the script to support Windows 10 Creators Update?
      Will be useful for the Community support.
      Thank You!
      
      Franco Leuzzi - Microsoft® MVP 9th Year - Windows and Devices for IT - System Administration - Hardware\Software. 
      
      FrancoLeuzzi @ alice.it
      
      
    • The Windows 10 Creators Update Will be officially published on April 11 and some testing is required before an update this script to this release.
      
      At the moment I am performing the necessary tests to publish a new version.
      
      I am grateful to include this version in your publications on answers.microsoft.com and include the credits the development.
      
      Grazie mille.
      
    • All Done!!
    • Perfect:
      Pubblicato:
      https://answers.microsoft.com/it-it/windows/wiki/windows8_1-update/ripristino-di-windows-update-windows-vista-7-81-e/880067ce-cb1b-428d-8021-ecbe04dd6393
      
       Thank you !   :-)
  • Download was interrupted
    2 Posts | Last post April 11, 2017
    • Running Windows 7 Home 64 bit + 32 bit with IE 11 and WebRoot SecureAnywhere. Unable to complete download of ResetWUEng.zip 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.
    • Hi Cyber,
      
      Try download this in https://github.com/ManuelGil/Script-Reset-Windows-Update-Tool
      
      Thanks!
  • Cannot Access Windows Services
    3 Posts | Last post April 11, 2017
    • First, thank you for posting this tool!  I ran it because I cannot get Microsoft's latest Cumulative Update (KB4013429) to install.  http://news.softpedia.com/news/easy-fix-for-windows-10-cumulative-update-kb4013429-issues-514030.shtml 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".
    • Hi William,
      
      This tool removes some Firewall settings, DNS settings and more.
      
      However, it is not designed to add restrictions to system control.
      
      I will be attentive for another similar situation.
      
      Thanks!
  • RebootRequired
    2 Posts | Last post April 11, 2017
    • My problem was the continual reboot required loop. As fixed by reading https://appuals.com/restart-your-computer-to-install-important-updates-loop/
      
      i.e. delete key: 
       HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired
      
      It wasn't fixed by your great tool.
    • Hi Alan,
      
      This script isn't a definitive tool for Windows Update troubleshooting, it is a support tool for restore Windows Update components.
      
      In the same way already included this change in the registry for a new version of this tool
      
      For more information check the file: Help.chm
      
      Thanks!
  • Server usage?
    4 Posts | Last post April 11, 2017
    • Has anyone tried this script on a 2012 or 2012 R2 server?
      
    • Getting ready to try it tonight on a Microsoft Windows Server 2012 Standard Edition, 64-bit (build 9200)
      
      Will report back.
    • It worked for us on Server 2012 Standard!
      
      THANKS FOR THIS!
    • Hi Carl and Xcreed,
      
      The Windows Server and Windows for Home share some builds.
      
      |--------------------------------------------
      | Windows 8
      | Windows Server 2012	||	6.2.9200
      |--------------------------------------------
      | Windows 8.1
      | Windows Server 2012 R2	||	6.3.9600
      |--------------------------------------------
      | Windows 10
      | Windows Server 2016	||	10.0.14393
      |--------------------------------------------
      
      This tool is compatible with Windows 8, 8.1 and 10. Also compatible with Windows Server 2012, 2012 R2 and 2016, however, it is not recommended to use in Windows Server since it can eliminate some configurations of Firewall, Domain and others...
      
  • 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
    • 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
    • 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 [http://www.tenforums.com/tutorials/24742-windows-update-reset-windows-10-a.html].
      
      I use a different approach to managing updates.
      - See the MSA article Manage data usage and Windows updates in Windows 10 - WiKi [http://answers.microsoft.com/en-us/windows/wiki/windows_10-networking/manage-internet-data-usage-and-windows-updates-in/5417b89b-4790-4cd9-b854-809862274447]
      - 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
      
    • 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: 
      
      https://gallery.technet.microsoft.com/scriptcenter/2d191bcd-3308-4edd-9de2-88dff796b0bc/
      
      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...  
      
      https://social.technet.microsoft.com/Forums/windows/en-US/5c6c1cf6-1494-4140-87da-caea1f42608c/microsoft-driver-update-for-hp-deskjet-895cse-locks-up-windows-update-unless-manually-hidden?forum=win10itprosetup&prof=required
      
      (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
      
    • 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  http://www.bbc.co.uk/news/technology-37408173 [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.
      
      Denis
    • 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
       "%ALLUSERSPROFILE%\Microsoft\Network\Downloader\qmgr*.dat"
      
       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]
       "%SYSTEMROOT%\winsxs\pending.xml
      
       Any ideas?
      
       Denis 
    • 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 ResetWUEng.zip Trend Micro is blocking the file as Trojan. http://www.trendmicro.com/vinfo/us/threat-encyclopedia/malware/troj_gen
      
      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.
      
      Thanks.
  • 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.
      
      Thanks.
1 - 10 of 25 Items