The recimg.exe command line tool lets you configure a custom recovery image for Windows to use when you Refresh your PC. When you create a custom recovery image, it will contain the desktop apps you've installed, and the Windows system files in their current state. Recovery images do not contain your documents, personal settings, user profiles, or apps from Windows Store, because that information is preserved at the time you refresh your PC.



When you create a custom recovery image, recimg will store it in the specified directory, and set it as the active recovery image. If a custom recovery image is set as the active recovery image, Windows will use it when you refresh your PC. You can use the /setcurrent and /deregister options to select which recovery image Windows will use. All recovery images have the
filename CustomRefresh.wim. If no CustomRefresh.wim file is found in the active recovery image directory, Windows will fall back to the default image (or to installation media) when you refresh your PC.

Note that you cannot reset your PC using a custom recovery image. Custom recovery images can only be used to refresh your PC.

The following commands can be specified:

/createimage <directory> :
Captures a new custom recovery image in the location specified by <directory>, and sets it as the active recovery image.


/setcurrent <directory> :
Sets the active recovery image to the CustomRefresh.wim file in the location specified by <directory>. Windows will use this image when you Refresh your PC, even if a recovery image provided by your PC's manufacturer is present.

/deregister :
Deregisters the current custom recovery image. If a recovery image provided by your PC's manufacturer is present, Windows will use that image when you refresh your PC. Otherwise, Windows will use your installation media when you refresh your PC.

/showcurrent :
Displays the path to the directory in which the current active recovery image is stored.

/help, /? :
Displays this help text.

You can learn here how to create a custom system refresh image for Windows 8.