Fix Error 80070002 When Using Windows Update in Vista

A lot of instructions on the web to slim, reduce and trim down Vista size occupied on hard disk drive, one of the common method suggested is to delete and remove all contents and data inside %SystemDrive%\Windows\WinSxS\Backup\ folder (normally C:\Windows\WinSxS\Backup\ directory). However, deleting the ‘look unused’ folder will bring unforeseen circumstance and backlash, and one of the symptom is causing Windows Update fails to check for updates or any updates and hotfixes downloaded unable to install with the error code 0×80070002 in Vista system.

The %WinDir%\WinSxS\Backup is a cache storage for backing up critical system files that are needed to start Windows, as implemented by WRP (Windows Resource Protection) system. The solution to fix the 80070002 error due to deleted %WinDir%\WinSxS\Backup is easy. Simply by recovering or re-creating the files under the “Backup” folder with just the filename will allow Windows Update and updates installation to work again. The good thing is only need the files with correct file name to exist, contents empty for every files is okay.

Here’s a brief description and guide on the steps users can take to recover the file contents in %SystemDrive%\Windows\WinSxS\Backup directory. For all tasks and actions, run in elevated command prompt with full administrative privileges.

Firstly, take ownership of the “Backup” folder and grant full control permissions in the ACL table for “Backup” folder. To do this, use commands below or refer to this guide for more ways to perform the required action.

takeown /F %WinDir%\WinSxS\Backup /r /d y
cacls %WinDir%\WinSxS\Backup /g administrators:f

Secondly, regenerate and recreate all files under “Backup” folder with empty or blank content. There are hundreds of files. To make thing easier, download and execute the winsxs-backup.bat which contains a series of commands to create empty (nul) files with correct filenames in the affected folder.

Thirdly, delete the temporary update files as instructed by Microsoft Help for 80070002 error code in Windows Update. Use the following commands. This step may not needed, you can try to check or install updates, and perform this step is the process still fail and unsuccessful.

net stop wuauserv
del /s /q %WinDir%\SoftwareDistribution\DataStore
del /s /q %WinDir%\SoftwareDistribution\Download
net start wuauserv

Finally, users can checks for Windows Update and install any updates found, or use “wusa” comand to install any standalone .msu package downloaded.

Another recommended step, but not necessary, it to recover the owner for the files in the “Backup” folder to the original default which is “NT SERVICE/TrustedInstaller”.

Share and contribute or get technical support and help at My Digital Life Forums.



4 Responses to “Fix Error 80070002 When Using Windows Update in Vista”

  1. Clinton
    December 28th, 2007 18:18
    1

    I get this prob while installing Vista SP1 RC using the standalone package BUT installing other updates is okay…do you guys know what i should do?

  2. Another Sp1 installation problem - Vista Forums
    June 25th, 2008 00:13
    2

    [...] permalink Take a look here and see if this resolves your problem: Fix Error 80070002 When Using Windows Update in Vista

  3. matthijs
    August 4th, 2008 14:42
    3

    Hey,
    I have this problem .. Only i never deleted a file in this folder. I have this problem after i removed Service pack 1 from my Home premium to upgrade to Ultimate. Then I used baba hacker tool activation only , after that i found out that Service pack wasnt installed , while I downloaded all the availeble updates. But now .. I cant instal service pack 1! I get this error code (and i can instal still other updates)

  4. John Samuel
    August 22nd, 2008 07:23
    4

    Excellent article. That fixed the problem with service pack 1. Hats off to the publishers.

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting


Custom Search

New Articles

Incoming Search Terms for the Article

80070002 - error 80070002 - WindowsUpdate_80004005 - error code 80070002 - windows update error 80070002 - windows update 80070002 - vista sp1 80070002 - vista SP1 error 80070002 - 80070002 vista sp1 - 80070002 - code 80070002 - 80070002 SP1 - winsxs backup - Windows Update_80070002 - sp1 80070002 - error 80070002 - Windows Update problems error 80070002 - vista 80070002 - Vista SP1 Error Code 80070002 - fix error 80070002 - Windows error code 80070002 - vista update error 80070002 - 80070002 error - error '80070002' - 80070002 vista - vista installed updates empty - windows visata update fail with error code 80070002 - winsxs-backup.bat - error '80070002' - 80070002 update error Windows Update - windows update error code 80070002 - errror code 80070002 in window vista - error: 80070002 - vista sp1 8007002 - windows update code 80070002 - 80070002 vista update - vista update 80070002 - Vista sp1 errore 8007002 - 80070002 fix - error 80070002 vista - Windows Update error 80070002 - 80070002 windows update - code 80070002 windows update - code error 0 80070002 - recovery error vista - windows vista sp1 update error 80070002 - +update +80070002 - vista sp1 update error 800700002 - 80070002 service pack 1 - vista sp1 installation error 80070002 -