- Create Recovery partition
create partition primary size=300
format quick fs=ntfs label=”Windows RE tools”
assign letter=”R”
set id=”de94bba4-06d1-4d40-a16a-bfd50179d6ac”
gpt attributes=0x8000000000000001 - Copy winpe.wim R:\Recovery\WindowsRE\winre.wim
Customize winre.wim if want more options. - Copy ReAgent.xml C:\Windows\System32\Recovery\ReAgent.xml
This step can be omitted if ReAgentc function work fine, else copy the blank ReAgent.xml. - Copy captured system image to D:\Recovery\WindowsIamge\install.wim
It has to be install.wim. It can be in any location, which will be linked by ReAgentc. - Sets the location of the custom Windows RE image.
REAGENTC.EXE /setreimage /path r:\Recovery\WindowsRE
REAGENTC.EXE /setreimage /path r:\Recovery\WindowsRE /target C:\Windows - Sets the location of the recovery image used by system reset.
REAGENTC.EXE /setosimage /path d:\Recovery\WindowsIamge /index 1 - Enables Windows RE.
REAGENTC.EXE /enable - Displays Windows RE and system reset configuration infomration.
REAGENTC.EXE /info - Create a push-button reset configuration file (Optional)
Save it to the same location of install.wim
This is the full sample of ResetConfig.xml
<?xml version=”1.0″ encoding=”utf-8″?>
<!– ResetConfig.xml –>
<Reset>
<Run Phase=”BasicReset_BeforeImageApply”>
<Path>SaveLogFiles.cmd</Path>
<Duration>4</Duration>
</Run>
<Run Phase=”BasicReset_AfterImageApply”>
<Path>RetrieveLogFiles.cmd</Path>
<Param>/allApps</Param>
<Duration>2</Duration>
</Run>
<Run Phase=”FactoryReset_AfterDiskFormat”>
<Path>CheckPartitions.exe</Path>
<Duration>2</Duration>
</Run>
<Run Phase=”FactoryReset_AfterImageApply”>
<Path>InstallApps.cmd</Path>
<Param>/allApps</Param>
<Duration>2</Duration>
</Run>
<SystemDisk>
<DiskpartScriptPath>ResetPartitions-UEFI.txt</DiskpartScriptPath>
<MinSize>75000</MinSize>
<WindowsREPartition>1</WindowsREPartition>
<WindowsREPath>Recovery\WindowsRE</WindowsREPath>
<OSPartition>4</OSPartition>
<RecoveryImagePartition>5</RecoveryImagePartition>
<RecoveryImagePath>RecoveryImage</RecoveryImagePath>
<RestoreFromIndex>1</RestoreFromIndex>
<RecoveryImageIndex>1</RecoveryImageIndex>
</SystemDisk>
</Reset> - Add custom tools to WinRE.wim (Optional)
Mount WinRE.wim and copy WinREConfig.xml to mountdir\sources\recovery\tools\WinREConfig.xml
Unmount with /commit to save WinRE.wim.
Sample of WinREConfig.xml
<?xml version=”1.0″ encoding=”utf-8″?>
<!– \sources\recovery\tools\WinREConfig.xml –>
<Recovery>
<RecoveryTools>
<RelativeFilePath>OEMDiagnostics.exe</RelativeFilePath>
<CommandLineParam>/param1 /param2</CommandLineParam>
</RecoveryTools>
</Recovery> - In Windows, open the Settings charm > More PC settings > General. In Advanced startup, click Restart now. Or
In Windows, open the Settings charm, and then hold the Shift key while clicking Restart. Or
From a command prompt, run the Shutdown /r /o command. Or
Boot the computer by using recovery media - MS reference document: http://technet.microsoft.com/en-us/library/hh825051.aspx
-
Recent Posts
Archives
Categories
Meta