What situation should you repair Windows Server 2008 R2/2012/2016 R2?
Before learning how to repair windows server 2008 r2/2012/2016 R2 using command prompt, it is necessary to know in what situation should you repair it.
As we know, when there is some problem occurs to system, you can do some basic repair like startup repair, boot directory repair and windows directory repair. Sometimes, you may also meet hard disk corrupted issue, you can repair hard disk with “Bootrec /rebuildbcd” command.
Sometimes, when the error is too serious to recover from basic repair. For example, you cannot boot because of system failures. You can create a repair disk and choose an advanced way like system restore to repair it. One can easily fix the system error with this disc and get system back to life.
Unlike Windows 7, “Start-up Repair” & “System Restore” options are not available in Windows Server systems. Fortunately, you can still make use of Command Prompt to perform reparation.
You can create a repair disk which contains some system recovery tools. In this way, you are allowed to repair Server using command line even you are not within Windows.
How to repair Windows Server 2008 R2 using command prompt?
In this article, I will introduce two ways to repair Windows Server using command prompt. Repair Windows Server with built-in command prompt and repair Windows Server with AOMEI.exe.
Repair Windows Server with built-in command prompt
Take a first look at how to repair Windows Server 2008 R2 Operating System using the built-in command prompt. The built-in command line has some useful functions. You can run some basic repairs and run system restore with it.
Some examples to run some basic repairs with command prompt
Repair hard disk
Boot to the Windows Server 2008 and choose the repair in the lower left hand corner of the screen.
Open a CMD prompt at advanced option.
D(your windows drive letter)
Chkdsk /f /r
If the problem is not solved, then you can repeat this MBR repair process again and use “Bootrec /rebuildbcd” command before “Chkdsk /f /r”
Repair boot files
Open CMD as above mentioned. From here you can run sfc and use the offline options.
Run sfc /offbootdir for offline repair specify the location of the offline boot directory
Run sfc /offwindir for offline repair specify the location of the offline windows directory
If you are still having issues, you could try to run a system restore with command line.
Run system restore with command prompt
As above mentioned, if the error is so serious that basic repair cannot work, you can run Windows Server 2008 R2/2012 R2/2016 system restore with command line. To do this, you need a system image backup first. Take a look at how to repair Windows Server 2008 r2 step by step.
Step 1. Boot the Windows Server with the installation disc if needed. At Windows Setup interface, click Repair your computer. Then choose Command Prompt in the System Recovery Options.
Step 2. At the prompt, type: wbadmin start systemstaterecovery –version:07/09/2017-13:29 –backuptarget:E: This means run system state recovery from system state backup at E drive created at 13:29pm in 07/09/2017.
Tips: You cannot restore system image to another computer with this method.
Repair Windows Server with AOMEI.exe
AOMEI Backupper Server is a reliable backup and restore software. You can either backup and restore the system from graphic users interface or command line. The best part is you can restore system to a dissimilar hardware.
Besides, it supports both Windows system (Windows 7/8/8.1/10/XP/Visa) and Windows Server system (Windows Server 2003/2008/2008r2/2012/2012R2/2016). That is to say you can also repair Windows 7/8/10 from command prompt with AOMEI.exe. If you want to protect unlimited PCs and servers within your company, you may choose AOMEI Backupper Technician Plus. It offers unlimited billable technical services to clients. It also enables you to copy installation directory for portable version creation.
Let’s see how to repair windows server 2008 R2/2012 R2/2016 through AOMEI command prompt. Suppose you have already created a system backup. Before running a system restore, you can check if system image backup is intact and without error by using Check Image utilities.
Step 1. If you cannot boot PC, quickly create a bootable media with AOMEI. Boot machine from bootable media and it will bring you to the main interface of AOMEI Backupper Server. Open command line under Utilities tab.
Step 2. Navigate to AOMEI Backupper installation directory by typing the following command in command line: cd [installation path of AOMEI Backupper] and press Enter. For example: cd C:\Program Files\AOMEI Backupper.
Tips: The drive letters might change under Windows PE environment.
Step 3. Run the following command to start restore: AMBackup /r /t [backup type] /s "[backup location path]" /d [destination location]. For example: To restore the system backup saved in D:\system backup to disk 2.
AMBackup /r /t system /s “D:\system backup\system backup.adi” /d 2
If you want to restore to another computer, AOMEI command line still can do this for you. For example: Restore system in the image named "system backup2.adi" to the partition 0 on disk 0 and perform a universal restore.
AMBackup /r /t system /s "D:\system backup\system backup2.adi" /d 0:0 /x
If you are not familiar with command prompt or just want an easier way, you can create a Windows Server 2012 recovery disk with the graphic users interface of AOMEI Backupper Server. It can also help you repair your computer as long as you a have a backup created before.
Besides system restore, it is also a professional system backup and disk clone software. With it, you can migrate Windows Server 2016 to SSD or clone Windows Server 2008 R2 easily and without efforts. All in all, there are two methods to repair Windows Server 2008 R2 using command prompt, you can choose one based on your preference.