Recovery image in Win 8 and 8.1

Custom recovery image in Windows 8 and 8.1

By default, the Refresh your PC feature in Windows 8 and 8.1 restores your computer to a working state and keeps all your documents and most personalizations, but you will lose all installed Desktop programs and Modern UI/Metro apps that were not installed from Windows Store. This does not sound much like a good backup and restore, right? Wink
Well, you can create a special kind of disk image (called baseline image or custom recovery image; often referred to as custom refresh image) that restores all installed Desktop programs and non-Windows Store apps. Sadly, all those programs and apps will lose their settings: when launched, they will act as if they were freshly installed. OK, this is so much better than nothing at all.
Creation of Custom Recovery Image is strongly recommended after upgrading from Windows 8 to 8.1 via Windows Store: after the upgrade completes, recovery partition still contains Windows 8 (not 8.1!) image and Refresh Your PC or Reset Your PC would restore the older version of Windows.
Please note that you should not create the custom image if Windows does not work normally (crashes or hangs, programs or apps do not run properly). Test your apps and programs and let Windows 8.1 run for at least 2-3 days before creating the recovery image after an upgrade.
Traditional disk image backups are still way better: they often run more reliably and restore everything exactly as it was, so you experience no lost configurations or Desktop programs. Check out Windows 8 built-in backup program that is somehow called Windows 7 File Recovery (or System Image Backup in Windows 8.1), or use free AOMEI Backupper or EaseUS Todo Backup instead.
It is also possible to do a non-destructive reinstall of Windows 8 or 8.1.
Please note that you cannot use Refresh or Reset Your PC features if Windows is installed on a drive with GPT (not MBR) partition table until you force "UEFI only" boot setting in BIOS/EFI. Windows 8 and 8.1 will not detect GPT partition alignment correctly if BIOS booting is enabled. .
As Windows 10 has no Refresh your PC functionality, the recimg.exe program used for creating Custom Recovery Images has also been removed. You can use Backup and Restore for traditional file and disk image backups in Windows 10.

Before creating the custom recovery image

You can store the image on system drive (the drive where Windows is installed), another hard drive, on an external drive (hard drive or USB stick with sufficient free disk space) or Storage Spaces (my recommendation).
Of course, the two latter ones are much safer choices, especially in case hard drive in your PC dies or the computer is stolen.
If you choose the external drive or Storage Spaces option, the external drive(s) must be connected before using the Refresh your PCfeature.
First, install all programs and apps you need and uninstall the ones you do not want. If you've been using your PC for a longer time, it is probably set up the way you want already.
If you want to store the image on external drive, open File Explorer (previously known as "Windows Explorer", keyboard shortcut WINDOWS KEY+E) and check the drive letter - it could be D:, E:, F:, G: and so on. Remember the drive letter.
You must have administrator rights to perform the following steps.

Creating a custom recovery image using recimg.exe in Windows 8 and 8.1

Launch elevated Command Prompt - open Start screen and type "cmd" to run Apps search/Search everywhere. Either right-click Command Prompt and click Run as administator in App bar, or hold down CTRL and SHIFT keys while clicking Command Prompt.
Alternatively, use keyboard shortcut WINDOWS KEY+X to bring up the Quick Links menu (a list of system tools) and click Command Prompt (Admin). Please note that in Windows 8.1, Command Prompt items are replaced with PowerShell items instead. See this tutorial on how to get Command Prompt back to your Quick Links menu.
Windows 8, Start screen. To run Command Prompt with elevated rights, right-click it and then click 'Run as administrator' in App bar. Windows 8.1, Quick Links menu. Click 'Command Prompt (Administrator)' to open elevated Command Prompt.
Now enter the following command: recimg -CreateImage <drive letter:>\RefreshImage . Replace the <drive letter:>variable with the drive where you want to store the image. For example, recimg -CreateImage C:\RefreshImage stores the image on system drive, in new folder named RefreshImage.
Having multiple Custom Recovery Images is also a good idea. Just add date to the name of target folder, for exampleC:\RefreshImage\2015-04-15 stores one image, and C:\RefreshImage\2015-08-23 stores another one. This way, you have more restore options in case something is wrong with the latest image.
Press ENTER key to run the command.
Windows 8, Command Prompt. Type 'recimg -CreateImage C:\RefreshImage' to create a custom disk image on system drive.
The process will take some time, depending on the number of installed programs and apps - up to an hour is completely normal. Please note that the writing image process might get stuck at 1% for about 30-45 minutes, this is expected behavior.

Errors you might encounter while creating a custom recovery image

There are several common errors that might interrupt the custom recovery image creation process:
  • Error Code 0x80042316 - this means that Volume Shadow Copy service is currently running (for File History, System Restore or traditional backup). Try again in about 10 minutes or after a traditional backup has completed.
  • Error Code 0x800423f2 - timeout occurred. By default, the image creation process can last for up to 10 minutes only. This might not be enough in several cases, so you might need to double the value. Download and launch the CreateTimeout.reg file - this will create the required entry in Windows Registry. Please note that you might have to right-click the link to actually save the file.
    The file creates a new DWORD value CreateTimeout under the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SPP key and sets its value to 00b71b00 (this equals 20 minutes in hexadecimal format).
  • Error Codes 0x80070002, 0x80070003 and other "The recovery image cannot be written" messages. TrueCrypt users are out of luck, there is no workaround available. For others, restarting your PC can help removing temporary mount points. Please note that some programs (mostly backup and encryption) need to lock disks to work properly, so there might be no solution to this problem. UseWindows Backup and Restore (Windows 8 only), System Image Backup in Windows 8.1, or free AOMEI Backupper or EaseUS Todo Backup for full disk imaging instead.

Verifying the custom recovery image before running Refresh your PC

Before you run Refresh your PC, it is best to verify the image is available - if it is not, you will lose installed Desktop programs and apps. Please note that you can do this only while Windows 8 or 8.1 is running normally - recimg command is unavailable in Recovery Environment.
In both normal mode and in Recovery Environment, Windows will look for available custom recovery images automatically - just make sure the right drive is connected.
Open elevated Command Prompt - open Start screen and type "cmd" to run Apps Search. Either right-click Command Prompt and clickRun as administator in App bar, or hold down CTRL and SHIFT keys while clicking Command Prompt.
Windows 8, Start screen. To run Command Prompt with elevated rights, right-click it and then click 'Run as administrator' in App bar.
In the black Command Prompt window, type recimg /showcurrent and press ENTER key.
If the last line is "Operation completed successfully", you are ready to go. But if you see error 0x80070490 and message "There is no active custom recovery image", the image is unavailable. Connect your external drive and try again after about 10 seconds.
Windows 8, Command Prompt. Type 'recimg /showcurrent' to verify the custom baseline image is available. Windows 8, Command Prompt. Error code 0x80070490 means that no custom baseline image is available. Connect your external drive and try again.

Deregistering and registering custom recovery images in Windows 8 and 8.1

Sometimes you might want to deregister an image created by someone else - it might be the image provided by your computer manufacturer (that normally includes tons of useless programs) or maybe you bought a used PC.
Again, open elevated Command Prompt - open Start screen (use WINDOWS KEY), type "cmd" and click Command Prompt while holding down CTRL and SHIFT keys.
Type recimg /deregister and press ENTER. Please remember that the custom image file or folder will not be deleted.
Windows 8, Command Prompt. Type 'recimg /deregister' to remove custom recovery image information. The file will not be deleted.
If you want to register an existing custom recovery image (you must do that after using Refresh your PC feature), type recimg /setcurrent <drive letter:>\RefreshImage\ and press ENTER. As usual, replace the <drive letter:> variable with the letter of the drive the image is on.
Windows 8, Command Prompt. Type 'recimg /setcurrent C:\RefreshImage' to register an existing custom recovery image.

How to restore a Custom Recovery Image

Custom Recovery Images can be restored with the Refresh Your PC process. Just plug in the drive where you keep the custom image, use keyboard shortcut WINDOWS KEY+I (touch-screen users can swipe in from the right side of screen and tap Settings) to open Settings Charm and click or tap Change PC Settings in the bottom of the bar.
Windows 8, Settings Charm. Click or tap 'Change PC Settings' to access Refresh Your PC.
Windows 8 users should open General tab on the left and click Get started in the Refresh your PC without affecting your files section.
Windows 8, PC Settings, General tab. Click 'Get started' in the 'Refresh your PC without affecting your files' section.
In Windows 8.1, open Update & recovery tab on the left, then open Recovery tab and click Get started in the Refresh your PC without affecting your files section.

No comments:

Post a Comment