DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 958042 - Last Review: September 29, 2008 - Revision: 1.0

On This Page

SYMPTOMS

When you try to install updates from the Windows Update site or from Microsoft Update Web site, you may receive the following error code:
0x80246007

CAUSE

This problem may occur if the Windows Update database is corrupted.

RESOLUTION

To resolve this problem in Microsoft Windows 2000, Windows XP, and Windows Server 2003

Important If you have downloaded but not installed updates from Windows Update or from Microsoft Update, you must download those updates again after you complete these steps.
  1. Click Start, click Run, type Notepad, and then click OK.
  2. Copy the following text, and then paste the text into Notepad.
    net stop wuauserv
    cd %systemroot%\SoftwareDistribution
    ren Download Download.old
    net start wuauserv
    net stop bits
    net start bits
    net stop cryptsvc
    cd %systemroot%\system32
    ren catroot2 catroot2old
    net start cryptsvc
    
  3. Click File, click Save As, and then type Repair.bat.
  4. In the Save as type box, click All Files.
  5. In the Save in box, click Desktop, and then click Save.
  6. On the File menu, click Exit.
  7. Double-click the Repair.bat file that you saved in step 5.
  8. Try to install the updates again. If you can install the updates, delete the Repair.bat file. To do this, right-click Repair.bat, click Delete, and then click Yes.

To resolve this problem in Windows Vista and Windows Server 2008

Important If you have downloaded but not installed updates from Windows Update or from Microsoft Update, you must download those updates again after you complete these steps.
  1. Click Start
    Collapse this imageExpand this image
     Start button
    , type Notepad in the Start Search box, and then click Notepad in the Programs list.
  2. Copy the following text, and then paste the text in Notepad.
    net stop wuauserv
    cd %systemroot%\SoftwareDistribution
    ren Download Download.old
    net start wuauserv
    net stop bits
    net start bits
    
  3. Click File, click Save As, and then type Repair.bat.
  4. In the Save as type box, click All Files (*.*).
  5. In the Save in box, click Desktop, and then click Save.
  6. On the File menu, click Exit.
  7. Right-click the Repair.bat file that you saved in step 5, and then click Run as administrator.

    Collapse this imageExpand this image
    User Access Control permission
    If you are prompted for an administrator password or for confirmation, type the password, or click Continue.
  8. Try to install the updates again. If you can install the updates, delete the Repair.bat file. To delete the Repair.bat file, right-click Repair.bat, click Delete, and then click Yes.

APPLIES TO
  • Microsoft Windows Update
  • Microsoft Update
  • Windows Vista Ultimate
  • Windows Vista Enterprise
  • Windows Vista Business
  • Windows Vista Home Premium
  • Windows Vista Home Basic
  • Windows Vista Starter
  • Microsoft Windows XP Professional
  • Microsoft Windows XP Home Edition
  • Windows Server 2008 Standard
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Datacenter
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Microsoft Windows Server 2003, Standard x64 Edition
  • Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Enterprise x64 Edition
  • Microsoft Windows Server 2003, Datacenter x64 Edition
  • Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems
  • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Professional Edition
Keywords: 
kbwindowsupdate kbexpertisebeginner kbtshoot kbprb KB958042
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support