You have a Hyper-V host named Server1 that runs Windows Server 2012 R2. Server1 contains a
virtual machine named VM1 that runs Windows Server 2012 R2.
You fail to start VM1 and you suspect that the boot files on VM1 are corrupt.
On Server1, you attach the virtual hard disk (VHD) of VM1 and you assign the VHD a drive letter of F.
You need to repair the corrupt boot files on VM1.
What should you run?

A.
bootrec.exe /rebuildbcd
B.
bootrec.exe /scanos
C.
bcdboot.exe f:\windows /s c:
D.
bcdboot.exe c:\windows /s f:
Explanation:
Enables you to quickly set up a system partition, or to repair the boot environment located on the
system partition. The system partition is set up by copying a simple set of Boot Configuration Data
(BCD) files to an existing empty partition.BCDboot Command-Line Options
Shouldnt the answer be A? bcdboot just generates boot files…doesnt bootrec fix them?
0
0
Provided answer is correct. You suspect them to be corrupt. Normally bootrec repairs the files when you insert installation media.
However it says you attach the VHD to another server. You copy the files from the machine where your VHD is connected to the VHD so your bootfiles are “renewed”
0
0
Thanks! you solve this big question I had !
0
0
just a note this only works because both the VM1 and server1 have the same OS. so you can use bcdboot to copy the boot files from a source (C:\windows on the host machine) to a specified (/s) location (F: on the host machine where you mounted VM1’s VHD).
0
0