I created a wim image that we are planning to deploy to some of our computers, but when I image a computer with it from a flash drive it continually reports that the BOOTMGR is missing (and no, it's not booting off the flash drive).

I'm able to resolve this by running Windows Startup Repair, but I would rather just add whatever command is resolving the issue to a script that runs after the image. I've already tried running fixmbr, fixboot, rebuildbcd and nt60, but none of those resolve the issue.

Basically, I would like to know what exactly is being done when I run Windows Startup Repair.

3 Answers 3


One thing you can do is click on the link that says "Click here for diagnostic and repair details", just before you are being asked to restart the system, so that the repairs are done.enter image description here

This will show you a log of the changes/repairs done, depending on the problems that were found. The things done by startup repair vary depending on your actual problems.

In the image below you can see an example of a problem found by Startup Repair. enter image description here


Every time you apply a wim image(with imagex tool) to a disk or partition you must add boot entries(Windows BCD entries) manually. To do this, you should boot the computer with a WinPE disk and run the following command on the partition that you applied the wim:

bcdboot X:\Windows

where X is the unit that you applied the image. You are able to see what is the X value by running:

diskpart list volume

  • I do not think you are answering the question: what exactly is being done when I run Windows Startup Repair? Jun 6, 2012 at 11:52
  • That is what is being done.... Windows Startup Reapir check if there is a entry inside BCD Entries(you can check it typing bcdedit command). If there isn't any entries it just create it with the bcdboot C:\Windows command, that is simples like this, there is nothing to add here beyond this.
    – Diogo
    Jun 6, 2012 at 11:58

If you applied the image to a different drive (typically c:) you'll want to run

bcdboot c:\Windows

And then run the command

bootrec /rebuildbcd

To scan for installations and add them to the boot manager.

  • Again... no real answer to the question being shared above. Jun 6, 2012 at 11:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.