Error 0xC0000034 during Service Pack 1 installations for Windows 7 and Windows 2008 R2


UPDATED BLOG INFORMATION FOR THIS ISSUE IS NOW LOCATED HERE: http://blogs.technet.com/b/joscon/archive/2011/03/16/new-information-on-error-code-0xc0000034.aspx

This blog is being left up for information only

I’ve seen several reports now of the following error (or something similar):

!! 0xc0000034 !! 142/53007 (_0000000000000000.cdf-ms)

Note If you restart the computer, you experience the same error message.

If you’re hitting one of these errors, you have a few options depending on the OS you’re using.

http://support.microsoft.com/KB/975484

Option 1 (Win7 client only):  Use a system restore point to recover the system

  • This one is pretty self explanatory.  Boot your machine into WinRE and pick a restore point before the service pack was installed.  This should get you back up and running. 
  • This doesnt work on server

Option 2 (Win7 client and 2008 R2 server):  Delete the poqexec entry

  • Boot into WinRE and choose a command prompt then run the following commands and restart the computer:
    • Reg load HKLM\BaseSystem C:\Windows\System32\config\SYSTEM
    • Reg Delete “HKLM\BaseSystem\CurrentControlSet\Control\Session Manager” /v SetupExecute
    • Reg add “HKLM\BaseSystem\CurrentControlSet\Control\Session Manager” /v SetupExecute /t REG_MULTI_SZ
    • Reg unload HKLM\BaseSystem
  • If you’re more graphically inclined, you can use this method:
    • Boot into WinRE
    • Open Registry Editor using regedit.exe 
    • Now you will have the WinRE registry loaded so you need to load the “ System ” hive
    • To do that : Highlight HKLM then  Click on File > Load Hive > Browse to C:\windows\system32\config (assuming C:\ being the system drive )
    • Name the Hive as TEST 
    • Browse to HKLM\TEST\select and check the value for “ Current “
    • Assuming the value as (1) browse to HKLM\TEST\ControlSet001\Control\SessionManager
    • Locate and double click the key “SetupExecute ” at the right panel 
    • Delete any value inside the key and click OK
    • Highlight TEST and then Click on File > Unload hive
    • Type exit at cmd
    • Reboot the machine and choose to start the machine normally

NOTE:  I’ve seen several people that have called in and said that they cant find the values referenced in this blog once they have booted into WinRE.  Please remember that when you are booted into WinRE you are booted into a RAMDRIVE.  This means that when you open the registry editor you are actually seeing the hives from WinRE and NOT the ones from Windows.  When you need to make sure you are loading the system hive from your Windows drive and not WinRE.

If this does not get your installation up and running there is another available workaround posted in the forums here: http://social.technet.microsoft.com/Forums/en/w7itproinstall/thread/1c9a7151-b48c-4a98-aae7-a4b82682ea8e#bcabda57-7338-499f-aee2-d708e76df315

It is not recommended that you edit the pending.xml but this may get your machine booted properly.  If you are desperate, feel free to try this at your own risk.  I wrote about why you want to be careful with this here: http://blogs.technet.com/b/joscon/archive/2011/03/11/why-you-don-t-want-to-edit-your-pending-xml-to-resolve-0xc0000034-issues.aspx

If you’re planning on opening an issue with SP1 for this, please try and gather the following information before you call, it will greatly help us in working on the issue:

• Registry hives. COMPONENT, and SYSTEM
• CBS log directory
• Sessions.xml
• Poqexec.log
• Pending.xml
• “Dir /s /b” Directory listing of c:\windows\winsxs

Additionally, I would like anyone who has a machine “in state” and can get logs off from WinRE to grab their \Windows\winsxs\FileMaps\$$.cdf-ms and the WindowsUpdate.log file.

Hope this helps.

–Joseph

Comments (73)

  1. Anonymous says:

    Ok, since you're on Win8, this definitely isnt your issue 🙂

    That said, what was the last thing you were doing/installing on your PC?  Sounds like it might just be the last app installed or possibly an update.

  2. Anonymous says:

    The service pack was re-released for WSUS yesterday with the exclusive flag set.

  3. Anonymous says:

    @Brian;  I'm not sure what else I could have done on this page to make it more clear that you didnt need to follow the steps located here.  It's got a new header, a new link, the steps are strikethrough and it points to the article that tells users how to fix the issue if they encounter it.

    However, the steps are correct as they are in the blog.  CurrentControlSet is not guaranteed to be set to CCS1, it's a variable and the only clear way to know what CCS is set to is to look at the Select key in the registry.

  4. Anonymous says:

    @rj;  thanks for that info.

  5. Anonymous says:

    I've heard others say that but I havent seen that myself.  I'll work on some testing later today and see if I can figure that out.

  6. Anonymous says:

    @Scott: Use the /revertpendingactions command.  That has resolved most of those issues

  7. Anonymous says:

    So this is the same like here?

    support.microsoft.com/…/en-us

    Can you change the "applies to" so that Windows 7 is mentioned there, too?

  8. Anonymous says:

    ok, the KB article was updated to Windows 7, too.

  9. Anonymous says:

    Thank you Clauas and Antti for the information.  We're hard at work here trying to see what's happening on these particular failures.  I dont have an answer yet, but as soon as I know something, you'll know it.  Please keep me informed on any failures and symptoms you have on these machines.  

    And if you have logs/VHDs or an image of a machine with this problem, let me know through the blog.  I'd like to get in-state failures so we can work on them but so far they have been few and far between.

    –Joseph

  10. Anonymous says:

    Are you getting a C34 error?  If not, the follow the post on using revertpendingactions.  You can get into WinRE by hitting your F8 key on boot and choosing the repair option.

  11. Anonymous says:

    Thanks, I'm asking around about this.  

  12. Anonymous says:

    Re Method 1, everyone in the mega thread says that there aren't any…SP1 deletes them.

  13. Anonymous says:

    So I'm assuming you're on another PC, correct?  This machine is just in a reboot loop?  If thats the case, depending on the OEM, you should have a key you can hit on boot (such as F2) which will give you their recovery menu.  I would see if you have an option to boot into recovery mode and then restore your last system restore point.  NOTE: Dont choose to restore your PC or you're going to lose any data on the machine.

    Each PC manufacturer is different in where, how and if they expose this option.  We should actually boot into recovery directly after the second reboot fails though.

  14. Anonymous says:

    Thats a missing assembly error.  Run CheckSUR on the machine and see if it reports the problem.

  15. Anonymous says:

    @Antti;  The issue itself has several well known workarounds at this point.  If you're in a C34 state, use the script in the KB mentioned.  If you havent yet rolled out the service pack, mark it exclusive in WSUS and set it to restart and the condition should not occur.  If you're in a torn state because you used the pending.xml workaround then I dont have a resolution for you at this time.

  16. Anonymous says:

    @Kevin, select normal startup.  That will start the rollback of the service pack.

    @Ottmar, it is more x64 editions but I dont think that architecture is really related.  It's just that the overall install base is more x64 now due to processor advancements.

  17. Anonymous says:

    The error in this blog entry is very specific as to why it occurred.  The problem that caused this has been fixed.  Are you trying to install SP1?

  18. Anonymous says:

    @Mike, if the key didnt exist then you might have had another issue.  Did you dismount the hive before you rebooted though?

  19. Anonymous says:

    John;

    That's not the case for many people, most are installing this is just fine.

  20. Anonymous says:

    Yeah, we worked on that last night.

    One thing I am interested to know is how many people are using the pending.xml hack or the registry key to get their machines bootable and then re-attempting the service pack installation?  If you have a story about this, I'd like to know your experiences.

  21. Anonymous says:

    Try using Startup repair in WinRE to see if it gets you by that error.

  22. Anonymous says:

    It wont always be CCS1, thats why we have you query the Select key first to determine the proper controlset.  Let me know if you have any questions about this.

  23. Anonymous says:

    We're working on new content for it now Andre.

  24. Anonymous says:

    Thats good, I hope you dont have any further issues like that.  If you do, let me know

  25. Anonymous says:

    Tired it too on 2 systems and got BSODs

    Tried repair: no errors found

    Tried sfc /scannow: no errors found

    i have ~15 affected PCs

    All are German Installations

    All are x64

    Some updated SP1 successfully

  26. Erd says:

    Did Option 2 and now I'm getting a config_initialization_failed bluescreen at boot.

  27. Dennis Soderberg - MS PSS says:

    Add the following as a last line to the Option 2:

    Reg unload HKLMBaseSystem

  28. SystemError says:

    Boot with the win7 install DVD with CMD

    Verify the date of the registry hives: system, software under

    C:windowssystem32configregback

    After than rename the current hives

    cd Windowssystem32config

    ren system system.old

    ren software software.old

    cd regback

    copy system C:windowssystem32configsystem

    copy software C:windowssystem32configsoftware

    Reboot the System.

    Now the system starts properly.

  29. Hmm... Cannot install, uninstall or repair W7 x64 SP1 afterwards says:

    Hmm… Cannot install, uninstall or repair W7 x64 SP1 after using any of the solutions presented here…

  30. John says:

    Have 5 windows 7 Pro machines down with same failure received with auto Update of SP 1

  31. Tate says:

    If you have a solid way to reproduce this issue, please post your exact OS+Application+etc+SP1 build steps so that the folks at Microsoft can investigate.

  32. John says:

    What is a solid reproduction of failure? Is 5 examples enough?

    Windows 7 pro, Auto Update of Service Pack 1, Fatal Error C0000034 applying update 282 of 116,496

    affected machines will not restart and error messages all exactly the same.

    Have a case open with Microsoft now.

  33. Tate says:

    @John – as joscon mentions only certain folks are seeing this issue.  Thus, it would help to know what is unique about the particular installs hitting the problem. i.e. what other than the base OS (and installed from what media), features, etc. are present.  What is the minimum amount of configuration from the base Win7 install which is required to reproduce this issue?  If such a factor can be isolated and the issue reproduced this makes for a much quicker resolution.  

    Also, if you are working with Microsoft now, try providing a disk2vhd created image of a machine that if upgraded to SP1 will reproduce the issue on demand.

  34. Rahul says:

    It is surprsing that the development team of a corporation as huge as MS repeating a mistake from Vista SP1 to Win7 SP1 as evident from Andre's KB… I seriously dont know what to say..!! I am concerned in wanting to kw if this is hitting the Server versions as well (2008 R2).. ??

  35. mj says:

    Had the problem here with 3 identical HP ProBooks, Win7x64 pro german in SBS 2008 domain.

    No restore points found so I did the pending.xml hack, then uninstalled sp1 and reinstalled from technet sp1 iso. No errors afterwards.

  36. Hauke says:

    I had the problem on all x64 ultimate machines with all language packs installed.

    Using "Starthilfe" (startup help?) WIndows repaired itself.

    I uninstalled all language packs and the update suceeded

  37. Carsten Wiengarten says:

    Got that error yesterday on 2 Hp Machines (z400 and z600) Both installes Windows 7 Pro German X64 and both got the SP1 via WSUS.

    Triing Method 1 was not possible as no restore points where found. Tring method 2 on the z400 took me into another Bluescreen "config_initialization_failed". Reinstalled the System with W7 via WDS and installed the SP1 seperatly.

    I did the pending.xml editing on the z600 and got a working machine back, uninstalled the SP1 and reinstalled it via the complete downloadable version from technet.,

  38. Scott says:

    I also did option 2 and now get the config_initialization_failed bluescreen at boot

    How do i fix that?

  39. Christian Wimmer says:

    Option 1: There are no Restore Points, at all.

    Option 2:  Reg Delete "HKLMBaseSystemCurrentControlSetControlSession Manager" /v SetupExecute

    -> Registry Key not found. If we skip that step and add the key machine goes into endless boot loop, doesn't try to do something with the Service Pack, doesn't start up at all.

  40. Kevin Spanner says:

    Just Inherited a new customer because of this issue – Thanks MS !

    – where all machines are white box clones.

    1. Tried Pending xml hack – no joy on 1 machine – keeping being asked to repair

    2. Tried MS Method

    Option 1: There are no Restore Points at all on any of the machines.

    Option 2 From Command Prompt: On reboot, still wants to do a repair. Do I select this or Normal Startup ?

    What is current status of ongoing patching after this? – too reluctant to install anything else at the moment.

  41. From what I've read so far, it seems that especially 64 bit/x64 versions of Windows 7 are effected which are a member in a domain and got the SP1 delivered via WSUS (or Windows Update from MS for whichever reason). The impression may be wrong since SP1 just started beeing deployed via WSUS on Tuesday (March 8 2011).

  42. Claus Valca says:

    Confirmed. Had two different Windows 7 Pro x64 systems receive SP 1 via WSUS push this weekend. Both encountered the same Fatal Error C0000034 applying update operation 282 of xxxxxx message after the "shutting down/applying updates" reboot.

    Although I had created manual system restore points on both systems prior, they were nowhere to be found when attempting the restoration.  Also had to do the 2nd method (key contents deletion) to get them running again (it did work).

    Tried to manually apply a fresh "standalone" SP 1 download package, but it failed reporting that there were missing required components and advised to repair/reinstall the system.    However when I checked the "System" description page; it reports to be running as Service Pack 1 now.  Added to this, when I check the Programs and Features and the Microsoft Updates view, I cannot find the Service Pack listed anywhere.

    Systems are up and running fine otherwise, but I'm worried about the long-term impact this failed experience has created now on both systems and how future updating/patching will go….and if there are still "unapplied" patches/actions still pending.

    On my three Windows 7 Home Premium systems (2-x64 versions and 1-x32 versions) the SP 1 packages came down via automatic updates and applied just fine with no issues.

    I appreciate the complexity of this issue but really, really hope that MS is able to eventually not only fix the root-cause of these failed SP 1 deployments but also offer some "roll-back/repair/cleanup" hotfix to allow a clean re-application of the SP1 on systems it failed (and cannot as yet reapply) on.

    Thanks for your hard work and open reporting of this issue as you are moving forward.

    Claus V.

  43. Antti says:

    There are lots of affected computers. So many, that one might think this kind of trouble should have been noticed before letting it out. SP1 via WSUS, all boxes are x64 and several language packs installed – troublesome, can confirm, glad I did not approve it without testing. IIRC something similar happened with Vista x64 w/Language Packs SP1 install.

  44. Lee says:

    I got this over the weekend in our office as well.

    All client PC's are Win7 x64 Pro. We have both Acer desktops and Toshiba and HP laptops.

    WSUS server is supplying the updates.

    I used the gui method of #2 from above (Note you should update those instructions to tell people where to check what is their current control set, they need to expand "select" to see it).

    Our machines are up and running for now, and I've declined the update in WSUS to prevent further problems. These machines were not all from the same image, but they all did use a customized Win7 install Cd (used WAIK to add drivers and script some installations).

    Other machines in the office got a update failed message in windows when it tried to install sp1 (before reboot), so they didn't get this problem. They were also Win7 x64 Pro, installed from the same customized CD.

    I'm afraid to reboot my Win2k8 R2 servers now since they've all installed the update. I'll do a couple low priority ones first.

  45. Rich R says:

    i had this on two sites so far, both were using HP machines with Windows 7 X64 installed from their restore discs (they came with XP pre-installed)

    both running SBS 2008.

    i got them running by removing the <checkpoint /> section from <drive:>windowswinsxsPending.xml and restarting, it then got to  35%, reverted back and logged in.

    i've also had truble with sage 200 on some of the HP OEM installs, i suspect HPs restore disks are bugged somehow.

    my own comuter was fine and that was installed from retail win7 x64, very same network as the affected ones.

    later computers built with later HP restore cd are fine and had no problems.

    thing is, all computers say SP1 is installed in the system properties, so i now wonder if i've got it half installed. we need a utlity to check the system and make sure SP1 is fully deployed!

  46. Alex says:

    Same Problems here. Windows Server 2008 R2 (German) installed the SP1 and never came up again after the reboot. We tried the registry hack, wich ended up in the Blue Screen. Finaly we copied the System hive from the Regback and edited the pending.xml  6 Hours of Troubleshhoting on a Exchange Server with nearly 120 Mailboxes. Thanks a lot MS!

  47. shruggy says:

    Joseph, could you please change CurrentControlSet -> ControlSet001 in the 2nd and 3rd steps of your Option 2? I was bitten by it today and got BSOD.

  48. chucko says:

    The common theme on the two PC's that I've had with the issue was the fact that SP1 came in via WSUS and that the users selected install updates and shutdown.  I've installed SP1 manually on a bunch of PC's without problem, so I'm suspecting that there may be something specific to this chain of events  (WSUS+install/shutdown=problem).  I'm going to revisit the customer site today to test further and to see if I can reapply SP1 to the two PC's that had the issue and now show as having SP1 installed but were actually rolled back as part of the fix (delete the poqexec entry).  I ran the current CheckSUR on the affected PC's and of course it shows no problems.

  49. b1k3rdude says:

    I slipstreamed sp1 onto my W7x64 and then reinstalled, but then started getting OS not found when booting. So I nuked the OS partition and reinstalled vanilla W7 and that fixed the issue.

  50. Mitch says:

    We have had 3 machines hit by this so far (2 desktops & 1 laptop) – all running Windows 7 Pro x64 with SP1 applied via WSUS. On the two desktops we did step 2 of KB # 975484 (there was no recovery point and last known config did not work). The laptop was remote, so we had to completely reinstall. The business impact of this stupidity is staggering.

  51. Matt says:

    We are in the same boat as Cluas.

    I did the "edit pending.xml workaround to get in the computers(5 total). They all show that SP1 is installed on the computer properties page but there is no listing for SP1 in the installed up dates. trying to reinstall SP1 and you get a message that says components needed to install the service pack are missing.

    I tried removing all updates that were installed the day of and the day before the SP install and still got the same message.

    MS said that the fix for that message was running an upgrade install from the CD. What is that process like? what would be the impact to file and installed programs and is it likely to fix the issue of SP1 not reinstalling?

  52. Rob B says:

    Well I wonder how much of MY time I'm going to have to spend sorting out MICROSOFT's CRAP this time.

    This SP isn't fit to be out there in the wild. I've now got a corrupted laptop that's been shipped down by courier from Scotland. Our sales guy can't do his job as a direct result of this service pack.

    W7 SP1 delivered via WSUS. Can't install it, can't uninstall it, basically it's been well fucked.

    Thanks. Have a nice day….

  53. Ryan says:

    had it happen on three computers here so far. One vaio that came out of the box with Win7 x64, two more that were upgraded from vista with retail Win7 ultimate x64. Updates pushed down from SBS2008 server. Other computers have failed SP1 install but without this fatal error. Did the pending.xml hack because that was the only fix I could find at the time.

  54. rjthomas says:

    Hi Joseph,

    I don't know if it's any help but I've installed RTM (WSUS) SP1 twice to on 2 clean VMWare machines (Win7 Ent x64) and had no problems at all. (we have had problems here, but it seems to be on older machines with more on them – Office apps etc). The 2 VMs were clean; either just SP1 by itself or installing it after running the first 70 WSUS updates, not problems at all.

  55. Zubair says:

    Why the hell i installed SP1 on my machine??????????? True is never ever change a running system , and be more careful if u have a Microsoft system . Really i am very disappointed at the moment. 🙁

  56. K-UnIt says:

    Had over 115 machines today crash after the SP1 update.  Luckily method #1 fixed the issue 5 hours later, but we had to touch every machine in our building.  Very disappointing for us being an MS shop.  I can also confirm this is strictly related to Windows 7 x64, WSUS Server pushing, and installing update when shutting down the machine.  It seems as if a manual run of Windows Update did not produce this problem.  Partially my fault for not testing this update, but I put trust in MS being it was a service pack.  

  57. MIke says:

    We have three Server 2008 R2 servers.  One installed fine.  One I had to modify the pending.xml file and it rolled back.  One I spent 10 hours on after modifying the pending.xml file.  This final one claims to have SP1 installed, but I suspect it doesn't since I did a rollback of the system files and system state from our backup the night before.  I had to then reactivate all the roles on the machine, including Hyper-V, using DISM.

    I need to have a verification tool to verify the actual SP1/non-SP1 status of these three servers.

  58. Mike says:

    I tried the first option (reg load then reg delete) but it couldn't find the reg key (even though I used reg load e:windowssystem32 etc). Anyway, I proceeded with the reg add then rebooted. Got a config_initialization_failed bsod. Any ideas?

    I'm up and running again (restored from backup) but still not at SP1 level.

  59. shruggy says:

    @Mike, I had the same experience as you. reg delete couldn't find the reg key because the SYSTEM hive didn't contain CurrentControlSet. reg add then created CurrentControlSetControlSession ManagerSetupExcecute which caused BSOD after reboot.

    To fix it, I booted into WinRE, launched regedit, deleted CurrentControlSet created by previous reg add and used the graphical variation of Option 2 above (it was ControlSet001 in my case).

  60. Antti says:

    Anything new? Is SP1 or WSUS or whatever causes this being worked on? When can we expect this to be fixed?

  61. Susan says:

    You can't mark it as exclusive in WSUS we don't have the control to do that.  The only control I have is to decline it.

  62. brian says:

    today i just had this issue on a win7 ultimate x64 after applying SP1 via windows update…

    option 1 above worked for me, but someone seriously needs to EDIT THOSE STEPS such that "currentcontrolset" = "controlset001" … and maybe highlight the UNLOAD command

    it's not currentcontrolset when in RE it's controlset001

  63. Drewfus says:

    Brian, follow joscon's advice here. However, to get the correct ControlSet in WinRE, maybe try this:

    > reg load HKLMRemember_to_Unload_SYSTEM C:WindowsSystem32configSYSTEM

    Where 'C:' is or represents your Windows 7 partition.

    > reg query HKLMRemember_to_Unload_SYSTEMSelect /v Default

       Default    REG_DWORD    0x#

    ControlSet00# is equivalent to CurrentControlSet (when Windows 7 is online)

    Finish with:

    > reg unload HKLMRemember_to_Unload_SYSTEM

    As you know, it is imperative to perform the unloading of the hive.

  64. Antti says:

    No matter how good the instructions are, MS should re-release a working version and make sure that those who had to use the first published workaround in order to use their computers at all, get their systems updated, too. Without local tweaking! MS did not test this one properly and should clear this mess up with a simple easily deployable fix or smth similar.

  65. Fellow ADMIN says:

    well if they did re-release it…they didnt make the old one expire..?  So….everything has to be done manually?  You know I dont like that…:)

  66. jschepers says:

    used the automatic-update on a win7x64 home premium because I don't know anything about computers to install SP1.

    My daughters notebook doesn't start after this installation.

    I can't even CD-start the system because I got no startable CD when I bought the computer. A repair-CD which I made earlier doesn't work and the screen remains dark.

    Am very disappointed that even ms-techies seem to not have the slightest idea what happens with the affected systems.

    Is there any possibility to get that thing running again without being a computer-freak?

  67. chrysis says:

    i have a problem when i try to install service pack1 on win7 professional  64bit. At the middle of installation i get a message error code 80073701. Can you help me please to solve the problem

  68. chrysis says:

    thanks i will try it

  69. Krystal says:

    Why does this error happen? I have had this computer less  than one month! Could it have been installed incorrectly? I have windows 8

  70. Krystal says:

    No not trying to install anything. I just bought a new laptop from best buy on the fourth of nov and I have this very error code now and my computer *** itself off after showing the error code. What I am getting from the above posts is that Microsoft did not fix this issue with windows vista,7or,8. "So it's nothing I could have done but a glitch in windows 8" correct? Thanks for your help

  71. Krystal says:

    I was on excel, printing up mazes for my four year old , and the absolute last thing I did was watch a video from utube. We have not installed any apps or any updates to my knowledge.

  72. Krystal says:

    I am on my phone. Ok thank you

  73. Krystal says:

    Best buy replaced my laptop for a new one.