Share via


How to use custom image(install.wim) recovery in windows 10

Question

Wednesday, October 25, 2017 1:26 PM

Hi

Please help me in creating and configuring the custom recovery in windows 10. I have tried the below steps, but windows resets with the OS with default recovery image (I don't know from where this default image is restored). None of my installed apps and data is present there. I have followed the below steps:

Installed and configured Windows 10 LTSB Enterprise edition in my system and installed some of my applications and data.

Restarted the system with WinPE.
Created the recovery image(install.wim) using the below tool.

imagex.exe /capture c:\ R:\Recovery\WindowsRE\install.wim "Image1"

Placed the image in my recovery partition R:\Recovery\WindowsRE\install.wim.

Configured the osimage location using:

reagentc.exe /setosimage /path R:\Recovery\WindowsRE\install.wim /index 1 /target C:\Windows

reagentc /enable

This is not working. When Reset PC is done windows not picking up the custom recovery that I created. The same procedure works well in Windows 8.1.

Could anyone please help me?

All replies (8)

Thursday, October 26, 2017 3:05 AM

For Windows 10, previous imagex /compress <type> /capture c:\image_directory command seems to be antiquated, we are using the new method, look at this new article.

Capture and Apply Windows, System, and Recovery Partitions

/en-us/windows-hardware/manufacture/desktop/capture-and-apply-windows-system-and-recovery-partitions

Your thread is correct, reagentc /setreimage command is also ok, only capturing image has trouble, you didn’t capture the current system image by imagex.

Step 3: Capture an image of the installation

/en-us/windows-hardware/manufacture/desktop/deploy-a-custom-image

Please try again.

Regards

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


Thursday, October 26, 2017 4:14 PM | 1 vote

Thank you for the reply.

Do we need to capture the System Partition also to reset with custom image? My understanding is that we only need the Install.wim file to do a custom recovery. Please comment.

To be more clear I need to use my custom image to recover the OS when we reset the PC.

During startup press F8 => Repair your Computer => Trouble Shoot => Reset this PC.

This needs to reset PC by using the custom image that I placed in the recovery folder.

Could you tell how to achieve the above requirement ?

As you mentioned I created the recovery image (Install.wim) using the DISM tool and place in the Recovery Drive.

R:\Recovery\WindowsRE\Install.wim

reagentc.exe /setosimage /path R:\Recovery\WindowsRE\Install.wim /index 1 /target C:\Windows

But still the system recovers to a fresh windows OS.

Please note that I have used "setosimage" in the above command and not the "setreimage". As per my understanding the former is used to set the Recovery image and the latter to set the winre image. Please correct me if I am wrong.


Friday, October 27, 2017 1:23 AM

My fault, I didn’t make out your parameter on original post.

But I should also note, /setosimage /path is not used in Windows 10, the latest Microsoft REAgentC command-line options doc has pointed out, look at the screenshot.

You are an experienced engineer and what you were doing are absolutely right on previous Windows, only for Windows 10, we need to do something different.

/Capture-Image

/en-us/windows-hardware/manufacture/desktop/dism-image-management-command-line-options-s14#capture-image

Create a Recovery Image used to Reset Windows 10

https://www.tenforums.com/tutorials/4287-create-reset-recovery-image-windows-10-a.html

Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

Hope my clarification is clear.

Regards

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


Friday, October 27, 2017 3:12 AM | 1 vote

Thanks let me knowing that setosimage is no longer supported by Windows 10. But the below link that you have given still uses the **setosimage **to set the recovery image. Will this work?

https://www.tenforums.com/tutorials/4287-create-reset-recovery-image-windows-10-a.html


Friday, October 27, 2017 7:03 AM

>>reagentc.exe /setosimage /path R:\Recovery\WindowsRE\Install.wim /index 1 /target C:\Windows

But still the system recovers to a fresh windows OS.

You have proved that it will not work.

Use the following article method, I find out two links before but only post one, a little forgetful recently.

Make Custom Recovery In Windows 8, 8.1 And Windows 10

http://www.c-sharpcorner.com/UploadFile/009464/make-custom-recovery-in-windows-8-8-1-and-windows-10/

Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

Regards

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


Saturday, October 28, 2017 2:14 AM | 1 vote

Hello

From the above link, I can set a custom winre.wim in Windows 10. But still the recovery environment restores to default windows. In other words it is not picking up the install.wim from the location R:\Recovery\WindowsRE\install.wim.

Here the solution required is to how to tell the recovery environment to use the install.wim from the path "R:\Recovery\WindowsRE\install.wim" during the "Reset this PC" operation.

Thank you

 


Wednesday, November 8, 2017 7:51 AM

You are welcome, I am happy to assist you with problem.

Please mark your reply to close this case

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


Tuesday, February 20, 2018 6:08 PM | 2 votes

I'm sorry, but the question is not answered here.

reagentc.exe /setosimage changes the custom OS image, but is no longer supported in Win10.

reagentc.exe /setreimage changes the WinPE Recovery Environment, this is not what Sudheer2013 needs answered.

We still need answer to: How can we reset to a custom image in Windows 10?