Windows 7 Service Pack 1 – Installation Failure ERROR_ACCESS_DENIED (0×80070005)

When Windows 7 Service Pack 1 was made available last week, I eagerly downloaded it and then attempted to install it on my laptop, at which it failed.  The error message was not particularly helpful either.

image

So following the instructions, I disabled my anti-virus and repeated the process, but once again I received ERROR_ACCESS_DENIED(0×80070005).

Having worked with Windows for many years, I knew to go on the hunt for the installation logs.

Navigating to C:\Windows\Logs\CBS, I located the log called CBS.log

Opening the log file I searched for the usual negative terms such as failure, denied and error, with Error giving me the most results.

I found multiple references in the CBS.log such as these.

2011-02-20 17:02:03, Info CBS    Failed to get session package state for package: Package_2_for_KB978601~31bf3856ad364e35~amd64~~6.1.1.1 [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2011-02-20 17:02:03, Info CBS    Failed to get session package state for package: Package_37_for_KB2443685~31bf3856ad364e35~amd64~~6.1.1.0 [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
2011-02-20 17:02:05, Info CBS    Failed to get session package state for package: Package_2_for_KB974431~31bf3856ad364e35~amd64~~6.1.1.5 [HRESULT = 0x80070490 - ERROR_NOT_FOUND]

I am not sure as to why these updates were reporting an ERROR_NOT_FOUND message, but after fully examining the CBS.log file I was left with a list of these updates (Note: this is my list of updates to remove, yours could be different).

KB2207566
KB2296011
KB2305420
KB2385678
KB2393802
KB2443685
KB2454826
KB2467023
KB2479628
KB2482017
KB2485376
KB2487426
KB972270
KB974431
KB974571
KB975467
KB977617
KB978601
KB978637
KB979482
KB979688
KB980846
KB982110
KB982799

Opening from the Control Panel, Programs and Features and then by selecting “view installed updates”, I removed all the listed updates that reported ERROR_NOT_FOUND in the CBS.log.

I then rebooted and attempted to reinstall Windows 7 Service Pack 1 again and hey presto, after about an hour, my laptop was up and running with Windows 7 Service Pack 1.

Success.

When I get time, I will investigate why I got these errors in the first place, but for me the important thing was getting Service Pack 1 on the laptop.  I am coming to the conclusion this issue was caused by having a pre-release of the service pack on my laptop as my other machines, which did not have a pre-release version of Service Pack 1 installed have been error free.

I HOPE THIS HELPS, THIS SOLUTION WORKED FOR ME, BUT DOES NOT MEAN IT WILL WORK FOR YOU.

16 Responses to “Windows 7 Service Pack 1 – Installation Failure ERROR_ACCESS_DENIED (0×80070005)”

  1. Hmmm… Great find, my CBS log is full of these, and I’m getting this same exit code. However after examining the CBS log and writing down all the not found updates, i uninstalled them but there were about 3 that were not on my list of installed updates so I can’t really remove them. After running the SP1 install again I still get the same exit code but now the CBS file has hardly anything in it… no errors and no missing updates… I’m at a loss here.

    I am going to try and run the 2/22/2011 rediness tool once more and then reboot and try the install again. If that doens’t work i’m going to have to resort to doing a system restore from disc unless you have some other ideas.

    Like

  2. Absolutely great. I was having the same problem, and your solution worked great for me. I’ll post a link to your solution in the forums I’ve seen people suffering from the same issue… ^^

    Best regards!

    Like

  3. Thanks for the post, this worked for me.

    Like

  4. I had the same error (80070005) trying to install SP1 on Windows 7 x64. I found out that it was due to having some old legacy software installed (hello Corel Draw 11) that assumed an account named Administrator existed on the system. On Win 7, the Administrator account exists, but is disabled by default. I enabled the administrator account (google how to do this from the command prompt), logged in as Administrator, and the service pack installed just fine. Afterwards I went back and disabled the Administrator account.

    Like

  5. I can’t open CBS.log. Please help.

    Like

    • William, can you please elaborate?

      Like

      • I have the same issue. I can’t seem to install this service pack. I took a look at the CBS.log but I didn’t find any “Failed to get session package state for package” but I got “Failed to internally open package. [HRESULT = 0x800f0805 - CBS_E_INVALID_PACKAGE]” instead. I’ve followed all steps from your postings and Windows suggestions but wasn’t able to find a solution.

        Please help!

        Like

      • Can you send me the CBS.log?

        Like

  6. its a long log…how do you want me to send it?

    Like

  7. it may went to your junk mail? I just resent it again

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 1,291 other followers

%d bloggers like this: