rem === Apply the image to the Windows Partition
dism /Apply-Image /ImageFile:F:\sources\install.wim /Index:1 /ApplyDir:W:\
rem === Copy the Windows RE Tools to the Windows RE Tools partition
mkdir T:\Recovery\WindowsRE
xcopy /h W:\Windows\System32\Recovery\Winre.wim T:\Recovery\WindowsRE
rem === Copy boot files from the Windows Partition to the System Partition ===
bcdboot W:\Windows
rem === In the System Partition, set the location of the WinRE Tools
W:\Windows\System32\Reagentc /Setreimage /Path T:\Recovery\WindowsRE /Target W:\Windows