Article ID: 2509997 - View products that this article applies to.
Expand all | Collapse all

On This Page

Symptoms

When you try to install an update to Windows, you try to install a Windows component, or you try to install a Microsoft or third-party software program, you experience one or more of the following symptoms:
  • You cannot view Windows roles or features.
  • A service pack installation fails.
  • When you try to connect to the Microsoft Windows Update website or to the Microsoft Update website, one of the following error codes is logged in the Windows Update log (windowsupdate.log) or in the Component Based Servicing log (CBS.log):
    • 0xC80001FE
    • 0x80200010
    • 0x80070643
    • 0x80246002
    • 0x80070490
    • 0x80070420
    • 0x80073712
    • 0x80246007
    • 0x8000FFFF
    • 0x80070424
    • 0x80248007
    • 0x8007064C
    • 0x8024D00C
    • 0x8007066A
    • 0x80245003
    • 0x8024402C

Cause

This problem may occur if one or more of the following conditions are true:
  • The Windows Update database is corrupted.
  • Antivirus software is configured to scan the %Windir%\SoftwareDistribution folder.
  • The Background Intelligent Transfer Service (BITS) service does not receive a content link header.
  • A required system file is registered incorrectly.
  • Windows Installer encountered an error.
  • The Component Based Servicing (CBS) manifest is corrupted.
  • The Windows Opdate service stopped during the installation.
  • A file version conflict exists with Windows Update agent files.

Resolution

To resolve this problem, try the following methods. After you perform the steps in each method, test to see whether the problem is resolved before you go on to the next method. If the problem is resolved by any method, you do not have to use the remaining methods.

Method 1: restart your computer, and then try to install the updates again

Close all programs that are running, restart your computer, and then try to install the updates again.

Note Restarting the computer will make sure that all previous installations have finished, and that no remaining processes require a system restart before they can finish.

Method 2: Run the System Update Readiness tool (CheckSur.exe)

Download and run the System Update Readiness tool. This tool runs a one-time scan for inconsistencies that may prevent future servicing operations. For more information about how to download and run the CheckSur.exe tool, click the following article number to view the article in the Microsoft Knowledge Base:
947821 Description of the System Update Readiness Tool for Windows Vista, for Windows Server 2008, for Windows 7, and for Windows Server 2008 R2
Try to install updates again.

Note After you run the tool, the CheckSur.log file is saved in the following location:
%systemroot%\logs\cbs

Method 3: Run the System File Checker tool (SFC.exe)

Run the System File Checker tool (SFC.exe). To do this, follow these steps:
  1. Open an administrative Command Prompt window.
  2. At the command prompt, type sfc /scannow, and then press Enter.
  3. After the scan is finished, try to install updates again.

Method 4: Reset the content of the Catroot2 folder

Reset the content of the Catroot2 folder. To do this, follow these steps:
  1. Type the following commands, and press Enter after each command:
    • net stop cryptsvc
    • md %systemroot%\system32\catroot2.old
    • xcopy %systemroot%\system32\catroot2 %systemroot%\system32\catroot2.old /s
  2. Delete all contents of the catroot2 folder, but do not delete the catroot2 folder.
  3. Type the following command, and then press Enter:
    net start cryptsvc
  4. Exit the Command Prompt window.

Method 5: Remove any incorrect Registry values

Remove any incorrect values that may exist in the Registry. To do this, follow these steps:
  1. Click Start, and then type regedit in the Start Search box.
  2. In the Programs list, click regedit.exe.
  3. Locate and then select the following registry subkey:
    HKEY_LOCAL_MACHINE\COMPONENTS
  4. Right-click COMPONENTS.
  5. Click Export.
  6. In the File Name box, type COMPONENTS.
  7. In the Save in box, click Desktop, click Save, and then save the file to your desktop.
  8. In the details pane, right-click PendingXmlIdentifier, and then click Delete. If this value does not exist, go to the next step.
  9. In the details pane, right click NextQueueEntryIndex, and then click Delete. If this value does not exist, go to the next step.
  10. In the details pane, right click AdvancedInstallersNeedResolving, and then click Delete. If the value does not exist, go to the next step.
  11. Restart the computer.
  12. Try to install the updates again.
Method 6: Register the Windows Update files
Register the Windows Update files. To do this, follow these steps:
  1. Open an administrative Command Prompt window.
  2. At the command prompt, type the following command:
    REGSVR32 WUPS2.DLL /S
    REGSVR32 WUPS.DLL /S
    REGSVR32 WUAUENG.DLL /S
    REGSVR32 WUAPI.DLL /S
    REGSVR32 WUCLTUX.DLL /S
    REGSVR32 WUWEBV.DLL /S
    REGSVR32 JSCRIPT.DLL /S
    REGSVR32 MSXML3.DLL /S
  3. Try to install updates again.

Method 7: Make sure that your antivirus application does not scan certain files

Make sure that your antivirus application does not scan the files in the %windir% \SoftwareDistribution directory on any computer on which Windows Update Agent is installed.

For computers that are running Windows Server 2003, Microsoft Windows 2000, Windows XP, Windows Vista, or Windows Server 2008, do not scan the following files and folders.

Note These files are not at risk of infection. If you scan these files, serious performance problems may occur because some files may be locked. If a specific set of files is identified by name, exclude only those files instead of the whole folder. Sometimes, the whole folder must be excluded. Do not exclude any of these items based on the file name extension. For example, do not exclude all files that have a .dit extension. Microsoft has no control over other files that may use the same extensions as these files.
  • Files that are related to Microsoft Windows Update or to Automatic Update 
  • The Windows Update database file or the Automatic Update database file

    Note This file (Datastore.edb) is located in the following directory:
    %windir%\SoftwareDistribution\Datastore
  • The transaction log files

    Note These files are located in the following folder:
    %windir%\SoftwareDistribution\Datastore\Logs
Exclude the following files:
  • Edb*.log

    Note The wildcard character indicates that there may be several files.
  • Res1.log
  • Res2.log
  • Edb.chk
  • Tmp.edb

Method 8: Rename the SoftwareDistribution folder

Rename the Windows Update temporary SoftwareDistribution folder. To do this, follow these steps:
  1. Open an administrative Command Prompt window.
  2. Run the following commands, and press Enter after each command:
    • Net stop wuauserv
    • cd %systemroot%
    • Ren SoftwareDistribution SoftwareDistribution.old
    • Net start wuauserv
  3. Try to install updates again.
Important The following issues occur when you use this method:
  • Updates that are currently downloaded but that have not yet been installed have to be downloaded again by using Windows Update or Microsoft Update.
  • When you delete the Software Distribution folder, your download history is removed.
  • If you currently receive updates from Microsoft Update and from Windows Update, you will have to reselect this option from the Windows Update website.
Note If the issue is resolved and you can successfully download and install updates, you can safely delete the SoftwareDistribution.old folder to recover disk space.

Method 9: Clear the BITS queue of any current jobs

Clear any current jobs out of the BITS queue. To do this, follow these steps:
  1. Open an administrative Command Prompt window.
  2. At the command prompt, type the following commands, and press Enter after each command:

    Net stop bits
    Net stop wuauserv
    Ipconfig /flushdns
    cd \documents and settings\all users\application data\microsoft\network\downloader
    Del qmgr0.dat
    Del qmgr1.dat
    Net start bits
    Net start wuauserv
    Note
    After you complete these steps, the BITS queue is cleared.
  3. Try to install updates again.

Method 10: Download and manually install the 958056 update

Download and manually install the KB 958056 update. To do this, follow these steps:
  1. Determine the Microsoft Knowledge Base article number of the failed update. To do this, do one of the following: View the error code message.
    • View the error code message.
    • View the update history on the Windows Update website or on the Microsoft Update website. To do this, follow these steps:
      1. Visit the following Microsoft Update Web site:
        http://update.microsoft.com
      2. Under Options, click Review your update history.
      3. In the Update column, determine the Microsoft Knowledge Base article number of the failed update.
  2. Visit the following Windows Download Web site: 
    http://www.microsoft.com/windows/downloads/default.aspx
  3. In the Search box on the Downloads Web page, type the article number that you located in step 1, and then click Go.
    Note Do not include the letters "kb" when you type the article number. For example, type "kb123456" as 123456.
  4. Browse through the list of returned content to locate the Knowledge Base article that has a link to the download.
    Note You may be prompted to validate Windows. If you are prompted, follow the instructions to validate Windows, and then continue to download the update.
  5. Click Download, and then click Save when you are prompted to save the download. Save the download to your desktop.
  6. After the download is finished, click Open to install the update.
    Note The update installation may fail if the update is incorrect for your version of Windows.

Method 11: Rename Pending.xml

Rename the Pending.xml file. To do this, follow these steps:
  1. Open an administrative Command Prompt window.
  2. At the command prompt, type the following command:
    takeown /f C:\Windows\winsxs\pending.xml
  3. Rename the c:\windows\winsxs\pending.xml path by using the following command:
Ren c:\windows\winsxs\pending.xml pending.old

Method 12: Run Chkdsk on the Windows partition

Run a disk check on the Windows partition. To do this, follow these steps:
  1. Open an administrative Command Prompt window.
  2. At the command prompt, type the following command:
    Chkdsk volume: /f /r

Properties

Article ID: 2509997 - Last Review: May 15, 2014 - Revision: 6.0
Applies to
  • Windows Vista Business
  • Windows Vista Enterprise
  • Windows Vista Home Basic
  • Windows Vista Home Premium
  • Windows Vista Starter
  • Windows Vista Ultimate
  • Windows 7 Enterprise
  • Windows 7 Home Basic
  • Windows 7 Home Premium
  • Windows 7 Professional
  • Windows 7 Starter
  • Windows 7 Ultimate
  • Windows Server 2008 Datacenter
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Foundation
  • Windows Server 2008 R2 Datacenter
  • Windows Server 2008 R2 Enterprise
  • Windows Server 2008 R2 Foundation
  • Windows Server 2008 R2 Standard
  • Windows Server 2008 Standard
Keywords: 
KB2509997

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com