Reset Windows Update Agent

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

ResetWUEng.zip
 
 
 
 
 
4.5 Star
(91)
213,989 times
Add to favorites
Windows Update
10/21/2016
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • 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.
  • 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.
      
      Thanks
      Mark
    • 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 |
      +----------------+---------------+
      | ResetWUEng.zip | 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 |
      +----------------+---------------+
      | ResetWUSpa.zip | 697.777 bytes |
      +----------------+---------------+
      
      Enjoy!.
    • Dear Manuel,
      It looks the zip file of ENG version is still 0kb after download.
      
      Thanks
      
    • Hi,
      Problem solved. It looks IE can download the right file, but chrome cannot.
      
      Thanks
  • Caution
    2 Posts | Last post October 01, 2016
    • I'm hesitant to run your script since AVG identify Launcher.exe as http://www.avgthreatlabs.com/ww-en/virus-and-malware-information/pu/free/?utm_source=TDPU&utm_medium=RS&CTRY=dk&LNG=da&PRTYPE=AVF&V=2015&AI=0&BE=21198549&IDNT=QEVJRF9JZF90cmp8JW5hbWUlPUdlbmVyaWNfcy5HWkg&IDN=YzpcVXNlcnNcSmFjb2IgSGF1Z2FhcmRcRG93bmxvYWRzXFJlc2V0V1VcTGF1bmNoZXIuZXhl&utm_expid=34410884-35.CS_WEkTPR3ybFVKTDsXCHQ.0
      
      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.
      
      Thanks.
  • 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
  • Script Hangs at Failed to Stop Appl Identity Service
    6 Posts | Last post August 28, 2016
    • Manuel, I'm running Vista SP2 32-bit 6.0.6002. It halts Crypto, BITS, and Update Services, but returns an Open Service Failed 1060 when trying to stop the Application Identity service. I cannot even find the service in Vista. Is there a work-around, or am I doing something wrong? Gracias!
    • The BITS service, the Windows Update service, the Cryptographic service and  Application Identity service start with Windows and they came with old versions of Windows.
      
      Try to start the computer from safe mode and run this tool.
      
      To know more:
      https://support.microsoft.com/en-us/kb/971058
      
      ¡Qué tengas un feliz día!
      
    • I'll power up my Vista machine over the weekend and give it a try in Safe mode, but once again, I never did find an Application Id/appidsvc in its directory of services. Gracias.
    • I came up in Safe Mode, ran the script, and got the same result (Failed 1060 when trying to stop the Application Identity service.) There does not appear to be an Application Id service on my Vista. Gracias.
    • Hi bilvihur,
      
      I deleted the closure of the tool with the "AppIDSvc" for Windows Vista. Try again. Hopefully be resolved soon.
    • Thanks for getting back to me, Manuel, but in the interim I found a procedure which uses WSUS Offline Update to download ALL the appropriate Vista patches on my WIN 7 machine, copy them to a USB drive, and then install them on the Vista machine. It was time consuming, but now the Vista Windows Update works! Appreciate your help.
      https://www.winhelp.us/reinstall-windows-update.html
  • WSUS client gets updates but does not report
    4 Posts | Last post August 18, 2016
    • I have 1 WSUS client running Windows 10 that is not reporting but pulls updates.
      
      After setting back the update components with your great tool it reported one time and now again no reports any more.
      
      The WindowsUpdate.log has only enties like this:
      
      1601.01.01 01:00:00.0000000 1156  7928                  Unknown( 23): GUID=ccdda195-7c91-4637-05e0-79cdf332fe13 (No Format Information found).
      1601.01.01 01:00:00.0000000 1156  7928                  Unknown( 37): GUID=799ca4c2-bf5e-7341-a77e-7c03d0aeb9b4 (No Format Information found).
      1601.01.01 01:00:00.0000000 1156  7928                  Unknown( 19): GUID=10db0a1e-9192-6b9f-7a23-524de9a65b73 (No Format Information found).
      1601.01.01 01:00:00.0000000 1156  7928                  Unknown( 20): GUID=10db0a1e-9192-6b9f-7a23-524de9a65b73 (No Format Information found).
      1601.01.01 01:00:00.0000000 1156  7928                  Unknown( 21): GUID=10db0a1e-9192-6b9f-7a23-524de9a65b73 (No Format Information found).
      1601.01.01 01:00:00.0000000 1156  7928                  Unknown( 22): GUID=10db0a1e-9192-6b9f-7a23-524de9a65b73 (No Format Information found).
      1601.01.01 01:00:00.0000000 1156  7928                  Unknown( 23): GUID=10db0a1e-9192-6b9f-7a23-524de9a65b73 (No Format Information found).
      1601.01.01 01:00:00.0000000 1156  7928                  Unknown( 10): GUID=5e0ee4cc-3618-f43a-06ca-9d3b0dabc11a (No Format Information found).
    • This is a virus. Don't dowmload it. 
    • Hi Teddy666,
      
      Seen this thread, maybe you can be of help:
      https://social.technet.microsoft.com/Forums/windows/en-US/43b41fec-5fb0-4dad-bb8c-75ce2b3f5171/how-to-manage-windows-10-update-branches-and-deferred-updates-with-wsus?forum=winserverwsus
      
      Also:
      https://support.microsoft.com/en-us/kb/3095113
      
    • Hi WilliamDellison,
      
      
      This is a false positive. Some antivirus scanners automatically consider the file is secure if it is signed with a valid digital signature or digital certificate.
      
      The "Launcher.exe" file don't has a digital signature or the publisher is untrusted. This file is bluided in bat2exe converter and this tool don't signed the executable file or the digital signature is untrusted.
1 - 10 of 20 Items