How to fix Windows Update Errors Part 3: Method 1-4

30/11/2015 10:11

Different Methods to fix Windows Update Errors.


Method1 Use the SubInACL tool to repair file and registry permissions. To do this, follow these steps:

  1. Download the SubInACL tool, and install it to the default path that is offered by the installer. The default path will be one of the following, depending on your version of Windows: 
    • %ProgramFiles%\Windows Resource Kits\Tools (32-bit versions of Windows)
    • %ProgramFiles(x86)%\Windows Resource Kits\Tools (64-bit versions of Windows)
  2. Start Notepad, and then copy and paste the following commands:

    @echo off
     
    setlocal
     
    echo.
    echo Determine whether we are on an 32 or 64 bit machine
    echo.
     
    if "%PROCESSOR_ARCHITECTURE%"=="x86" if "%PROCESSOR_ARCHITEW6432%"=="" goto x86
     
    set ProgramFilesPath=%ProgramFiles(x86)%
     
    goto startResetting
     
    :x86
     
    set ProgramFilesPath=%ProgramFiles%
     
    :startResetting
     
    echo.
     
    if exist "%ProgramFilesPath%\Windows Resource Kits\Tools\subinacl.exe" goto filesExist
     
    echo ***ERROR*** - Could not find file %ProgramFilesPath%\Windows Resource Kits\Tools\subinacl.exe. Double-check that SubInAcl is correctly installed and re-run this script.
    goto END
     
    :filesExist
     
    pushd "%ProgramFilesPath%\Windows Resource Kits\Tools"
     
    subinacl.exe /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f  /grant=system=f
    subinacl.exe /subkeyreg HKEY_CURRENT_USER /grant=administrators=f  /grant=system=f
    subinacl.exe /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f  /grant=system=f
    subinacl.exe /subdirectories %windir% /grant=administrators=f /grant=system=f
     
    echo FINISHED.
    echo. 
    echo Press any key to exit . . .
    pause >NUL
     
    popd
     
    :END
     
    endlocal
  3. Save the file as Reset.cmd.
  4. Right-click the Reset.cmd file in File Explorer (in Windows 8.1 and Windows 8) or Windows Explorer (in Windows 7 and Windows Vista), and then click Run as administrator. In Windows XP, double-click the file in Windows Explorer.
  5. Wait until the execution finishes, and then try to install the update again.

Note If you receive errors when you run SubInAcl, see the following Microsoft blog:


Method 2. Run Microsoft's Fixit

 

Microsoft have a range of automatic programs to fix common problems. For Windows Update problems see

 

https://support.microsoft.com/mats/windows_update/en-us

 

For the full list visit

 

https://support.microsoft.com/fixit/en-us

 

When you choose to download it, choose the option to run on another computer. Then you can save it to your harddisk in a folder. Open the folder, open the folder Fix it Portable, and run Launch Fix It. It will contain all 27 Fixits.

 

Does that help Windows Update.

 

Method 3. System Update Readiness Tool

 

Also run the System Update Readiness Tool

 

For 32 bit Windows

https://www.microsoft.com/en-us/download/details.aspx?id=504

 

For 64 bit Windows

https://www.microsoft.com/en-us/download/details.aspx?id=1540

 

To see results click Start - All Programs - Accessories - Right click Command Prompt and choose Run As Administrator. Type (or copy the below line and one blank line underneath and right click in the command prompt window and choose Paste).

 

notepad %SYSTEMROOT%\Logs\CBS\CheckSUR.log

 

Method 4. Repair and Defrag the Database

 

Start - All Programs - Accessories - Right click Command Prompt and choose Run As Administrator. Type (or copy and paste by right clicking in the Command Prompt window and choosing Paste).

 

esentutl.exe /p c:\Windows\SoftwareDistribution\DataStore\DataStore.edb

 

esentutl.exe /d c:\Windows\SoftwareDistribution\DataStore\DataStore.edb