

W:\Windows\System32\reagentc /setreimage /path T:\Recovery\WindowsRE /target W:\Windows /bootkey 0x3d00 Rem = In the System partition, set the location of the WinRE tools = W:\Windows\System32\reagentc /setosimage /path R:\RecoveryImage /target W:\Windows /index 1 Rem = In the System partition, set the location of the Windows partition =

Rem = Copy boot files from the Windows partition to the System partition = Rem = Copy the Windows RE Tools to the Windows RE Tools partition =Īttrib -a -s -h W:\windows\system32\recovery\winre.wimĬopy W:\windows\system32\recovery\winre.wim T:\Recovery\WindowsRE\winre.wim Rem = Apply the image to the Windows partition =ĭism /Apply-Image /ImageFile:R:\RecoveryImage\install.wim /Index:1 /ApplyDir:W:\ Rem = Copy the image to the recovery image partition = Rem Example: ApplyImage E:\Images\ThinImage.wim Rem predefined hard disk partitions on a UEFI-based computer. Recovery image partition =įormat quick fs=ntfs label="Recovery image"Ĭode: rem These commands copy the selected image file to Rem ** NOTE: Update this size to match the size Rem ** NOTE: For Advanced Format 4Kn drives, Windows RE tools partition =įormat quick fs=ntfs label="Windows RE tools" Rem Adjust the partition sizes to fill the drive Rem = These commands are used with DiskPart to
