

Rename it to reagent.xml and rerun reagentc.exe.ġ0) run Reagentc /setosimage /path R:\osimage /index 1ġ1) run Reagentc /info to verify windows re is enabled and an os image is registered.ġ2) go to disk management to remove the drive letter from the recovery partition. Luckily, the old one was still there with the name reagent_merged.xml1. Now, this gave me an error, because the reagent.xml config file in c:\windows\system32\recovery was reset to empty when the recovery image was removed. This will create one install.wim file from the seperate swm files.ģ) create a new folder called mount and mount the install.wim to this folder:ĭISM /mount-wim /WIMFile:C:\Temp\SP2Recovery\Destination\install.wim /index:1 /MountDir:C:\Temp\SP2Recovery\MountĤ) now copy the winre.wim file from mount\windows\system32\recovery to the temp folderĥ) you now have both the winre.vim and install.vimĦ) go to disk management, format your recovery partition to ntfs (recreate one if you deleted it) and assign a drive letter (for instance R)Ĩ) copy winre.vim to r:\recover\windowsREĩ) from the admin cmd prompt, run reagentc.exe /enable.


To restore your recovery partition, you need a recovery usb drive.ġ) insert your recovery usb drive and copy all *.swm files from the sources folder to a temporary location on your surface.Ģ) hit winkey+x and choos command prompt (admin) from the menuĭISM /Export-Image /SourceImageFile:C:\Temp\SP2Recovery\Source\install.swm /swmfile:C:\Temp\SP2Recovery\Source\install*.swm /SourceIndex:1 /DestinationImageFile:C:\Temp\SP2Recovery\Destination\install.wim This seems a bit strange, but they were indeed gone and now they are back. So when you delete the recovery drive, you also loose the recovery options. Apparently both are on the recovery drive. There are to types of images involved, windows recovery environment (winre.vim) and an os image (install.vim). Ok, I think I restored my recovery partition! I probably earned a microsoft certification in the process.įirst some background information.
