How to Rebuild the BCD in Windows

X:\Sources>bcdedit /export c:\bcdbackup
The operation completed successfully.

X:\Sources>attrib c:\boot\bcd -h -r -s

X:\Sources>ren c:\boot\bcd bcd.old

X:\Sources>bootrec /rebuildbcd
Scanning all disks for Windows installations.

Please wait, since this may take a while...

Successfully scanned Windows installations.
Total identified Windows installations: 1
[1] D:\Windows
Add installation to boot list? Yes(Y)/No(N)/All(A):Y
The operation completed successfully.