I was testing some different debug settings today with the Windows Boot Manager on my development machine and accidentally set the debug transport provider to a non-existent DLL. This is pretty easy to do when using the BCDEDIT utility on your Windows Vista machine so be warned. Once I restarted my machine, Windows would no longer boot and I couldn't even enter safe mode. My only option was to rebuild the Boot Configuration Data (BCD) after booting from a Windows install disk and entering the recovery environment.
If you find yourself in a similar situation and have corrupted your BCD, the steps to recover your machine are pretty straight forward. First of all, you need a copy of a Windows Vista Install disk. If you can't find one of these, you've got a problem!
- Restart your machine, enter the Bios <F2> and make sure you can boot from CD/DVD.
- Insert your licensed Windows Vista Install disk
- Once Windows Vista boots, choose Repair your computer
- Choose Advanced recovery options and click Command Prompt
- At the console, enter bootrec /rebuildbcd
- Restart your computer
If the rebuild does not succeed in the above, you will need to remove the current BCD before attempting to rebuild. Here's what to do:
bcdedit /export c:\bcd.bak
rename c:\boot\bcd bcd.old
Good luck! :)