Reset Windows Update in Windows 10  

Page 40 of 50 FirstFirst ... 303839404142 ... LastLast

  1. Posts : 2
    10 Enterprise
       #390

    Brink said:
    Hello, and welcome to Ten Forums.

    You could try doing a repair install of Windows 10 to fix it without losing anything.

    Repair Install Windows 10 with an In-place Upgrade
    Hi!

    Thank you, i did what you said and the problem is fixed, it was a little searching to get to a clean ISO file for my version but i succeeded and the problem is gone
      My Computer


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

    Jheroen said:
    Hi!

    Thank you, i did what you said and the problem is fixed, it was a little searching to get to a clean ISO file for my version but i succeeded and the problem is gone
    Great news.
      My Computers


  3. Posts : 186
    Windows 10 Home x64 Version 21H2 Build 19044.1586]
       #392

    Re-set Register


    Download is blocked by Microsoft because it is not on their list of approved downloads.
    Is there any way round this ?
      My Computer


  4. Posts : 68,921
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #393

    PostmanPuzzled said:
    Download is blocked by Microsoft because it is not on their list of approved downloads.
    Is there any way round this ?
    Hello,

    You should be able to select to download it anyway.

    Which browser are you downloading from?
      My Computers


  5. Posts : 186
    Windows 10 Home x64 Version 21H2 Build 19044.1586]
       #394

    Re-set Register


    Google Chrome

    - - - Updated - - -

    How do I run the file I have saved to the desktop ?
    I worked that out. - eventually. So easy everyone assumes you know how to it.
    Right click Start, choose Run, choose browse and find the folder/file saved to desktop.

    Joy shortlived. Final message was

    Access denied - C:\WINDOWS\winsxs\pending.xml
    Access denied.

    I am trying Repair install. It failed to install Windows 10 the first time partly I think because of Updates missing. or corrupted. I thought it a good idea to run this program before I tried again.

    I agreed to xml files because Microsoft was swamping me with adverts of Microsoft Edge
    almost every time I did anything for a while and I clicked on anything that would get me through the barrage. Very short sighted I know. The first go at Repair install seems to have got rid of them at least.
    Last edited by PostmanPuzzled; 05 Sep 2021 at 20:31.
      My Computer


  6. Posts : 1
    Win 10 21H1
       #395

    My Windows 10 Update issue is that it says it failed and that it couldn't connect to the update service, even though I have internet for everything else. I have version 21H1 from an iso manual update/upgrade. But the problem is still there.
      My Computer

  7.    #396

    Will this work on windows 11?

    Code:
    @echo off
    
    
    :: Created by: Shawn Brink
    :: Created on: October 1st 2015
    :: Updated on: March 9th 2020
    :: Tutorial: https://www.tenforums.com/tutorials/24742-reset-windows-update-windows-10-a.html
    
    
    :: Prompt to Run as administrator
    Set "Variable=0" & if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs"
    fsutil dirty query %systemdrive%  >nul 2>&1 && goto :(Privileges_got)
    If "%1"=="%Variable%" (echo. &echo. Please right-click on the file and select &echo. "Run as administrator". &echo. Press any key to exit. &pause>nul 2>&1& exit)
    cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "%~0", "%Variable%", "", "runas", 1 > "%temp%\getadmin.vbs"&cscript //nologo "%temp%\getadmin.vbs" & exit
    :(Privileges_got)
    
    
    :: Checking and Stopping the Windows Update services
    set b=0
    
    
    :bits
    set /a b=%b%+1
    if %b% equ 3 (
       goto end1
    ) 
    net stop bits
    echo Checking the bits service status.
    sc query bits | findstr /I /C:"STOPPED" 
    if not %errorlevel%==0 ( 
        goto bits 
    ) 
    goto loop2
    
    
    :end1
    cls
    echo.
    echo Cannot reset Windows Update since "Background Intelligent Transfer Service" (bits) service failed to stop.
    echo.
    pause
    goto Start
    
    
    
    
    :loop2
    set w=0
    
    
    :wuauserv
    set /a w=%w%+1
    if %w% equ 3 (
       goto end2
    ) 
    net stop wuauserv
    echo Checking the wuauserv service status.
    sc query wuauserv | findstr /I /C:"STOPPED" 
    if not %errorlevel%==0 ( 
        goto wuauserv 
    ) 
    goto loop3
    
    
    :end2
    cls
    echo.
    echo Cannot reset Windows Update since "Windows Update" (wuauserv) service failed to stop.
    echo.
    pause
    goto Start
    
    
    
    
    
    
    :loop3
    set app=0
    
    
    :appidsvc
    set /a app=%app%+1
    if %app% equ 3 (
       goto end3
    ) 
    net stop appidsvc
    echo Checking the appidsvc service status.
    sc query appidsvc | findstr /I /C:"STOPPED" 
    if not %errorlevel%==0 ( 
        goto appidsvc 
    ) 
    goto loop4
    
    
    :end3
    cls
    echo.
    echo Cannot reset Windows Update since "Application Identity" (appidsvc) service failed to stop.
    echo.
    pause
    goto Start
    
    
    
    
    :loop4
    set c=0
    
    
    :cryptsvc
    set /a c=%c%+1
    if %c% equ 3 (
       goto end4
    ) 
    net stop cryptsvc
    echo Checking the cryptsvc service status.
    sc query cryptsvc | findstr /I /C:"STOPPED" 
    if not %errorlevel%==0 ( 
        goto cryptsvc 
    ) 
    goto Reset
    
    
    :end4
    cls
    echo.
    echo Cannot reset Windows Update since "Cryptographic Services" (cryptsvc) service failed to stop.
    echo.
    pause
    goto Start
    
    
    
    
    :Reset
    Ipconfig /flushdns
    del /s /q /f "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat" 
    del /s /q /f "%ALLUSERSPROFILE%\Microsoft\Network\Downloader\qmgr*.dat"
    del /s /q /f "%SYSTEMROOT%\Logs\WindowsUpdate\*"
    
    
    
    
    if exist "%SYSTEMROOT%\winsxs\pending.xml.bak" del /s /q /f "%SYSTEMROOT%\winsxs\pending.xml.bak" 
    if exist "%SYSTEMROOT%\winsxs\pending.xml" ( 
        takeown /f "%SYSTEMROOT%\winsxs\pending.xml" 
        attrib -r -s -h /s /d "%SYSTEMROOT%\winsxs\pending.xml" 
        ren "%SYSTEMROOT%\winsxs\pending.xml" pending.xml.bak 
    ) 
      
    if exist "%SYSTEMROOT%\SoftwareDistribution.bak" rmdir /s /q "%SYSTEMROOT%\SoftwareDistribution.bak"
    if exist "%SYSTEMROOT%\SoftwareDistribution" ( 
        attrib -r -s -h /s /d "%SYSTEMROOT%\SoftwareDistribution" 
        ren "%SYSTEMROOT%\SoftwareDistribution" SoftwareDistribution.bak 
    ) 
     
    if exist "%SYSTEMROOT%\system32\Catroot2.bak" rmdir /s /q "%SYSTEMROOT%\system32\Catroot2.bak" 
    if exist "%SYSTEMROOT%\system32\Catroot2" ( 
        attrib -r -s -h /s /d "%SYSTEMROOT%\system32\Catroot2" 
        ren "%SYSTEMROOT%\system32\Catroot2" Catroot2.bak 
    ) 
      
    
    
    :: Reset Windows Update policies
    reg delete "HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /f
    reg delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\WindowsUpdate" /f
    reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /f
    reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\WindowsUpdate" /f
    gpupdate /force
    
    
    
    
    :: Reset the BITS service and the Windows Update service to the default security descriptor
    sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
    
    
    sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
    
    
    :: Reregister the BITS files and the Windows Update files
    cd /d %windir%\system32
    regsvr32.exe /s atl.dll 
    regsvr32.exe /s urlmon.dll 
    regsvr32.exe /s mshtml.dll 
    regsvr32.exe /s shdocvw.dll 
    regsvr32.exe /s browseui.dll 
    regsvr32.exe /s jscript.dll 
    regsvr32.exe /s vbscript.dll 
    regsvr32.exe /s scrrun.dll 
    regsvr32.exe /s msxml.dll 
    regsvr32.exe /s msxml3.dll 
    regsvr32.exe /s msxml6.dll 
    regsvr32.exe /s actxprxy.dll 
    regsvr32.exe /s softpub.dll 
    regsvr32.exe /s wintrust.dll 
    regsvr32.exe /s dssenh.dll 
    regsvr32.exe /s rsaenh.dll 
    regsvr32.exe /s gpkcsp.dll 
    regsvr32.exe /s sccbase.dll 
    regsvr32.exe /s slbcsp.dll 
    regsvr32.exe /s cryptdlg.dll 
    regsvr32.exe /s oleaut32.dll 
    regsvr32.exe /s ole32.dll 
    regsvr32.exe /s shell32.dll 
    regsvr32.exe /s initpki.dll 
    regsvr32.exe /s wuapi.dll 
    regsvr32.exe /s wuaueng.dll 
    regsvr32.exe /s wuaueng1.dll 
    regsvr32.exe /s wucltui.dll 
    regsvr32.exe /s wups.dll 
    regsvr32.exe /s wups2.dll 
    regsvr32.exe /s wuweb.dll 
    regsvr32.exe /s qmgr.dll 
    regsvr32.exe /s qmgrprxy.dll 
    regsvr32.exe /s wucltux.dll 
    regsvr32.exe /s muweb.dll 
    regsvr32.exe /s wuwebv.dll
    regsvr32.exe /s wudriver.dll
    netsh winsock reset
    netsh winsock reset proxy
    
    
    :: Set the startup type as automatic
    sc config wuauserv start= auto
    sc config bits start= auto 
    sc config DcomLaunch start= auto 
    
    
    :Start
    net start bits
    net start wuauserv
    net start appidsvc
    net start cryptsvc
    
    
    :: Restart computer
    cls
    echo It is required to restart the computer to finish resetting Windows Update.
    echo.
    echo Please save and close anything open now, before the computer is restarted.
    echo.
    pause
    echo.
    echo.
    echo.
    echo *** Restart computer now. ***
    echo.
    pause
    shutdown /r /f /t 0
      My Computer


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

    kuyenmotdivad said:
    Will this work on windows 11?
    Hello,

    Yes, it should still work in Windows 11.
      My Computers


  9. Posts : 17
    Windows 10
       #398

    Hi! I have a ACER laptop W10 that never had any issues with WU but now I am stuck on KB5008212 and have done every possible fix and tried every solution I've found online, but so far I still get error 0x80070005. Also 0x800f0984 (PSFX_E_MATCHING_BINARY_MISSING).
    I've followed all the recommendations and test to reset and clear in cmd, restore health, etc. etc. etc.
    There's nothing wrong in the regstry and there's no issues with it other than windows update!
    I have full administration (checked that also) and only one account.
    However, when running the code in this thread (windows 10) I get questions in the cmd asking to reply yes or no to. It doesn't say anything about this in the descriptions so should I reply yes or no? In the registry it sais I have done a Inplace upgrade (1) but then what, nothing more happens.
    I'd be very very very glad for some guidance and help with this. Thank you!
    Fix PSFX_E_MATCHING_BINARY_MISSING Error For Windows 10 PCs Cannot Install New Updates HTMD Blog
      My Computer


  10. Posts : 23,241
    Win 10 Home ♦♦♦19045.4291 (x64) [22H2]
       #399

    @Gecko112M


    If you are attempting to do an In-Place Upgrade...






    Repair Install Windows 10 with an In-place Upgrade



    Here is the short version of the In-place upgrade tutorial...

    DISABLE non-Microsoft:
    a) antivirus software
    b) firewall software
    c) drive encryption software

    Make a full OS backup with a program like Macrium Reflect (free)
    Macrium Software | Macrium Reflect Free

    Go here and get the Media Creation Tool and save it to your desktop.
    https://www.microsoft.com/en-us/soft...load/windows10

    RUN the Media Creation Tool and use it to: Create an ISO image... save IT to your desktop.
    This will be the latest version of the ISO image.




    Right click the ISO image and choose: MOUNT
    Open File Explorer and you will see a new drive letter. It will look like a DVD optical drive.
    Double click the new drive letter to open it.
    Find setup.exe and double click it to start the in-place upgrade.

    Choose the Keep personal files and apps option.

    After it's all done... to UNmount the ISO image, right click the new drive letter and choose: EJECT.


    The ONLY thing you will lose is some of your personalizations. Your programs and data will be intact.







    Note:

    I would remove the registry entry that the Anoop article suggested you place in the registry.
    I've done 3-4 In-Place upgrades, and I don't have that entry in my registry.


    Reset Windows Update in Windows 10-image1.png
      My Computer


 

Tutorial Categories

Reset Windows Update 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 09:03.
Find Us




Windows 10 Forums