System Restore Windows 2012 R2 with the command line on the repair disk

If you want to go back to another complete system state you cannot simply do this via the in-Windows based Server Backup and Restore GUI. Likely it will tell you some message like: "WBADMIN START SYSTEMSTATERECOVERY".

How to get into the repair disk:

  • Start/restart the computer,
  • Press F8,
  • Select Repair Your Computer
  • Select Troubleshooting
  • System Image Recovery
  • ...

The command line accessible from the repair disk allows you to restore any available restore point. To query available restore points execute "wbadmin get versions". On the repair disk this first gives you no available resources. If your backup is e.g. on drive D: keep in mind that this is in the repair disk now E:.

So,
wbadmin get versions -backupTarget:e:

This should now give you all the available backups and their suitability to restore a system (bare-metal backup).

Backup time: 22.11.2014 16:00
Backup target: Fixed Disk labeled D:
Version identifier: 11/22/2014-15:00
Can recover: Volume(s), File(s), Application(s), Bare....
Snapshot ID: {9c71430a-cd07-4679-802a-b4810e8b47bc}

The information needed to start a backup operation is the identifier, so:

Version identifier: 11/22/2014-15:00

Now execute a systemrestore:

wbadmin start sysrecovery -backupTarget:e: -version:12/02/2014-08:17

If the identifier exists:

wbadmin 1.0 - Backup command-line tool
(C) Copyright 2013 Microsoft Corporation. All rights reserved.

You have chosen to recover volume(s) \\...,C:
from the backup created on 12/2/2014 12:17 AM to the original location
Warning: You have chosen to recover a full volume. This will delete ...

Do you want to continue?
[Y] Yes [N] No y

Preparing only the critical volumes on critical disks for recovery.
Retrieving volume information...
Running a recovery operation for volume System Reserved (350.00 MB), copied (0%).
Running a recovery operation for volume WINDOWS(C:), copied (0%).
Running a recovery operation for volume WINDOWS(C:), copied (1%).
Running a recovery operation for volume WINDOWS(C:), copied (2%).
Running a recovery operation for volume WINDOWS(C:), copied (3%).
..
Running a recovery operation for volume WINDOWS(C:), copied (95%).
Running a recovery operation for volume WINDOWS(C:), copied (97%).
Running a recovery operation for volume WINDOWS(C:), copied (98%).
Finalizing volume WINDOWS(C:)...
The recovery operation for volume WINDOWS(C:) successfully completed.
The recovery operation completed.
Summary of the recovery operation:
--------------------

The recovery operation for volume System Reserved (350.00 MB) successfully completed.
The recovery operation for volume WINDOWS(C:) successfully completed.

Sources:
Windows Server 2012 R2: Wbadmin get versions
Windows Server 2012 R2: Wbadmin start sysrecovery

Keywords:
Backup, Windows Server 2012 R2, Windows Server 2008 R2, Microsoft

Comments

Popular posts from this blog

SQL Server Setup: Windows Firewall warning (Ports)

SQL Server 2014 Enterprise Edition: Server Setup: Feature Selection

How to read an assembly.dll.config