Why my windows updates dosen't work?

Malith Roshen 1 Reputation point
2021-10-10T07:39:54.287+00:00

139120-screenshot-2021-10-10-130747.png

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Marco Schiavon 711 Reputation points
    2021-10-11T08:52:20.737+00:00

    try running this with admin rights.

    # stopping services....
    net stop wuauserv
    net stop cryptSvc
    net stop bits
    net stop msiserver
    
    #clean the temporary files...
    del "%tmp%" /s /q 
    del "%temp%" /s /q 
    del C:\*.tmp /s /q
    del C:\users\*\AppData\Local\Temp\* /s /q
    del C:\Windows\Temp\* /s /q
    
    # check the OS with DISM.exe 
    # /Restorehealth to repair the corrupted scanned files
    # /Cleanup-image to cleanup and repair the system.
    # /Online you tell DISM to use the current OS and not an image.
    # /ResetBase to removes all superseded component in the component store
    Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
    
    #Rename the SoftwareDistribution and  System32\catroot2
    net stop cryptsvc
    rename  %systemroot%\system32\catroot2 catroot2_old
    rename  %systemroot%\SoftwareDistribution SoftwareDistribution_old
    
    #Remove "C:\$WINDOWS.~BT"
    takeown /F "C:\$WINDOWS.~BT" /R /A
    icacls "C:\$WINDOWS.~BT\*.*" /T /grant administrators:F
    rmdir /S /Q "C:\$WINDOWS.~BT\"
    
    #Remove "C:\$Windows.~WS"
    takeown /F "C:\$Windows.~WS" /R /A
    icacls "C:\$WINDOWS.~BT\*.*" /T /grant administrators:F
    rmdir /S /Q "C:\$WINDOWS.~BT\"
    
    net start wuauserv
    net start cryptSvc
    net start bits
    net start msiserver
    
    exit
    
    0 comments No comments

  2. S.Sengupta 24,636 Reputation points MVP
    2021-10-11T12:58:47.843+00:00

    If you get an error code while downloading and installing Windows updates, the Update Troubleshooter can help resolve the problem.

    Select Start Windows logo Start button > Settings Gear-shaped Settings icon > Update & Security Circular arrows Sync icon > Troubleshoot. Next, under Get up and running, select Windows Update > Run the troubleshooter.

    Windows Update Troubleshooter for Windows 10

    0 comments No comments

  3. Limitless Technology 39,931 Reputation points
    2021-10-13T08:55:08.957+00:00

    Hi there,

    Some of the basic troubleshoot that you can try are as follows

    1. Rename the Software Distribution folder
      • Click the Start button and type cmd
      • Right-click Command Prompt and select Run as Administrator
      • Type the following commands one at a time. Press Enter after each command
        net stop bits
        net stop wuauserv
        ren %systemroot%\softwaredistribution softwaredistribution.bak
        ren %systemroot%\system32\catroot2 catroot2.bak
        net start bits
        net start wuauserv
      • Close the command prompt after running the command and restart the computer
    2. Repair hard drive error
      • Open Command Prompt Admin again
      • Type the following command and press Enter
        chkdsk/f C:
      • Restart the computer after
      • Note the error message if you'll get any
    3. Run System file checker tool
      https://support.microsoft.com/en-us/topic/use-the-system-file-checker-tool-to-repair-missing-or-corrupted-system-files-79aa86cb-ca52-166a-92a3-966e85d4094e

    Restart the PC and then try updating.


    If the reply is helpful, please Upvote and Accept it as an answer


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.