Repairing Windows 2012 R2 Startup

Method 1:
===============
1. Put the Windows Server 2012 R2 installation disc into the disc drive, and then start the computer.
2. Press a key when the message indicating “Press any key to boot from CD or DVD …”. appears.
3. Select a language, a time, a currency, and a keyboard or another input method, and then click Next.
4. Click Repair your computer.
5. Click the operating system that you want to repair, and then click Next.
6. In the System Recovery Options dialog box, click Command Prompt.
7. Type sfc /scannow, and then press ENTER.

Method 2:
===============
1. Put the Windows Server 2012 R2 installation disc in the disc drive, and then start the computer.
2. Press any key when the message indicating “Press any key to boot from CD or DVD …”. appears.
3. Select a language, time, currency, and a keyboard or another input method. Then click Next.
4. Click Repair your computer.
5. Click the operating system that you want to repair, and then click Next.
6. In the System Recovery Options dialog box, click Command Prompt.
7. Type Bootrec /RebuildBcd, and then press ENTER.

Method 3:
===============
1. Put the Windows Server 2012 R2 installation disc into the disc drive, and then start the computer.
2. Press a key when the message indicating “Press any key to boot from CD or DVD …”. appears.
3. Select a language, a time, a currency, and a keyboard or another input method, and then click Next.
4. Click Repair your computer.
5. Click the operating system that you want to repair, and then click Next.
6. In the System Recovery Options dialog box, click Command Prompt.
7. Type BOOTREC /FIXMBR, and then press ENTER.
8. Type BOOTREC /FIXBOOT, and then press ENTER.
9. Type Drive:\boot\Bootsect.exe /NT60 All, and then press ENTER.

Note: In this command, Drive is the drive where the Windows Server 2012 R2 installation media is located.

31 Responses to “Repairing Windows 2012 R2 Startup”
  1. Kris 19 September 2014 at 5:16 pm #

    I have not needed to do this since Server 2003 and was not confident about the steps on 2012R2. THANK YOU!!

  2. Roopesh 3 April 2015 at 11:17 pm #

    Thanks kris 2 method helped me in fixing my issue

  3. Flare 17 April 2015 at 2:07 am #

    Can medthod use with raid?

  4. panther 29 April 2015 at 10:09 am #

    Methode 2 saved my life

  5. Bryan Sparlin 4 May 2015 at 8:09 am #

    Just did a fresh Server 2012 R2 install on a new system. Ran the Microsoft updates and it seemed to corrupt the \Boot directory. Method 2 fixed it.

  6. john@imcco.net 22 June 2015 at 5:15 pm #

    what about:

    Boot to the dvd
    Configure the server to boot to dvd
    Press any key to boot to dvd
    Select language and next
    Click “Repair your computer”
    Select Troubleshoot
    Select command prompt
    Run x:\sources\recovery\startrep.exe

  7. David 23 June 2015 at 8:27 am #

    If you are already in the sources folder of the installation media. Navigate back to the the root directory i.e. X:\ and just run Bootsect.exe /NT60

  8. SteveSims 21 July 2015 at 2:22 am #

    Wanted to add to this that the partition needs to be set active with the DiskPart utility.

  9. Peter 7 August 2015 at 12:22 am #

    Thanks Man; best tutorial on the net

  10. balu 8 August 2015 at 10:34 am #

    Is it recomented to recover windows which have hyper v and active directory.does it cause any problem to my server 2012 r2

  11. Craig 10 September 2015 at 7:25 am #

    Thanks very much.. there is a lot of terrible info on the net.. but this info is concise, accurate.. and it worked!!

  12. Veeresha KM 20 September 2015 at 10:17 pm #

    Thanks, methods helped me in fixing my issue

  13. Vazha Gelashvili 28 September 2015 at 10:58 pm #

    Hi,I got BSOD with code ending with 21a

  14. Anand 17 November 2015 at 12:26 am #

    Earlier in 2k3 if there are system files deleted we can repair it using CD. if some system files are deleted in windows server 2012 how do I repair using CD. System files which are deleted now appears back

  15. Martin 27 December 2015 at 1:07 am #

    Thanks!!!! Method 2. best tutorial on the net

  16. EAKN 1 January 2016 at 4:43 am #

    Hello,

    I have an problem with windows 2012 R2 unable to boot. I only got Black screen before logging into windows. I have tried the above methods. But I could not get (5. Click the operating system that you want to repair, and then click Next) & the repair wizard directly took me to the repair options. The three methods did not solve the problem.

    Any help?

  17. Dardan 9 February 2016 at 3:28 am #

    Method 3 worked in my case. But I skipped the line number 9.
    I had a problem booting my windows server 2012 r2 with virtualisation.

    In the message i could see this:(see link below)

    https://scontent-vie1-1.xx.fbcdn.net/hphotos-xfp1/v/t35.0-12/12669921_10153950147409600_368768853_o.jpg?oh=f473d495776cad369704bccd989b966a&oe=56BBFEA1

    Windows failed to start …

    File: \Boot\BCD
    Status: 0xc000000e
    Info: The Boot Configuration Data for your PC is missing or Contains errors.

  18. KRS 10 May 2016 at 5:21 am #

    I need to repair my Server 2012r2 which is virtualized, Server Manager won’t launch, neither will Event Viewer, add/remove features etc. What is the best way to do this in so that I don’t lose my data. This is my DC.

    Help. Thank you.

  19. Ken C 10 May 2016 at 8:00 am #

    Thanks!

  20. milad 13 May 2016 at 11:11 pm #

    hi
    i have a serious problem with my windows server 2012

    after loading windows and I log in , after 1 min ,windows hanging up and everything stop , but i have pinging it’s IP ,but it’s services stop and after 15 – 25 min it has show an error that your systrm have a problem and you need to restart. when i restart ,system does not setect hard boot file until i turn pc off and on.
    now i want to set additional dc on another pc and i need that windows up for 30 min to transfer its configure to new one.

    the last admin didn’t catch any backup and i cant restor
    how could i repair this windows to do my work?

  21. mohan shinde 21 June 2016 at 8:18 am #

    Hi,, yesterday for cleaning purpose we shutdown server (Windows server 2012R2)
    After work we start server but it’s showing “preparing automatic repair” and after that showing three options 1] Continue = exit and continue to server 2012r2 but it’s not worked 2] troubleshoot = three options 1] system image recovery 2] command prompt 3] startup settings
    but no one command and method work 3] Turn off
    I tried below 3 methods but not worked .

    .. Please help me..it’s really urgent but not worked 🙁

    thank you in advanced

  22. Friday 24 June 2016 at 10:03 am #

    I ‘m having the same problem, and I can’t access the hard drive because it says initially that the “drive where Windows is installed is locked – Unlock the drive and try again”, when I selected the option to refresh the server.
    Now I don’t even have that option.
    How do I get access to the data in my drive?

  23. Dude 12 August 2016 at 6:44 pm #

    borked mint 18 / ubuntu install beside a win2012r2 installation.
    all partitions on 3. and 4. disks but grub on windows disk.
    bios and grub could not find/boot from disk 3/4, so ended with a “GRUB, error: no such device: ” error.
    Only tried method 3, worked fine. Worth mentioning that I couldnt find backslash in the
    recovery windows on foreign keyboard. but no need to specify
    Drive:\boot\Bootsect.exe, as \boot\ directory did not exist.
    Found bootsect.exe command somewhere on the disk, and in path so just typed
    bootsect /NT60 All

    Also, could not find a way to reboot computer, just shut down.

  24. Mike 23 August 2016 at 12:07 pm #

    Hello,

    I have an odd problem… odd to me. I was running servers on XenServer 6.5 and migrated over to Hyper-V Datacenter.

    All of my machines worked (except linux, but that’s another story). However, my main DC Controller has funny phenomena. If I do a reboot I get a blue screen. I have to force it into safe mode with networking, login and then reboot again and it will come up fine.

    It appears that logging into Safe Mode clears out some kind of cached drivers, however I don’t know how to go about fixing it. I’m assuming the cached drivers are remnants of the XenServer Tools Drivers.

    Any idea on how to clean out old drivers and then reinstall the drivers needed…? Without reinstalling the whole thing?

  25. Rob 23 August 2016 at 3:14 pm #

    Method 2 fixed my issue. Attached an old 2012 VHDX file to a new VM and Hypervisor…I attached it to the wrong controller but Method 2 I was able to boot without issue.

  26. Carles Hutahaean 29 August 2016 at 7:46 pm #

    Thank brother to your information..
    information save in work

  27. Lon 11 October 2016 at 10:12 am #

    My issue was after my Hyper-V host crashed, and was brought back on line my VM picked up the System Recovery partition as the C drive and the “real C drive” became the D drive. Once I used DISKPART to make the windows drive the C drive again step 2 worked for me.

  28. IZZY 13 October 2016 at 10:56 pm #

    Method 2 worked

  29. Daniel 16 November 2016 at 8:34 pm #

    Thanks, upgrade my bios cause raid 1 boot failure.due to bios change it to ahci mode.change back to raid 1 and cause boot fail. Tried all 3 step and it works. Thank you

  30. JAEC 24 November 2016 at 3:41 am #

    windows server 2012 r2 its says boot fail- windows boot manger…. none of the above helps me… need a solution. any help… 🙁

  31. Abdul Raheem Khan 6 December 2016 at 9:35 pm #

    Hi,, yesterday my server was shutdown due to power failure .After power came one time the server boot properly but the other systems not pinging that server.
    After restart (Windows server 2012R2)it’s showing “preparing automatic repair” and after that showing three options 1] Continue = exit and continue to server 2012r2 but it’s not worked 2] troubleshoot = three options 1] system image recovery 2] command prompt 3] startup settings
    but no one command and method work 3] Turn off

    . Please help me..it’s really urgent but not worked

    thank you in advanced

Leave a Reply