How to create bootable windows recovery partition like Recovery image Media stored in partition of the SSD

Kiran s 0 Reputation points
2025-10-17T10:06:46.11+00:00

Hi I need to create WinPE and WinRE help me and give ma a proper steps to do this .,

Windows development | Internet Information Services
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Danny Nguyen (WICLOUD CORPORATION) 3,500 Reputation points Microsoft External Staff
    2025-10-20T04:01:19.8966667+00:00

    Hi @Kiran s ,

    If you want to create a bootable Windows recovery partition similar to the factory recovery image used by OEM systems, you can do this manually using WinRE (Windows Recovery Environment) or a custom WinPE (Windows Preinstallation Environment) image.


    Option 1: Enable and customize Windows Recovery Environment (WinRE)

    1. Check if WinRE is already enabled
         reagentc /info
      
      If it says Windows RE status: Disabled, enable it with:
         reagentc /enable
      
      (Official command reference: REAgentC command-line options)
    2. Find the WinRE image By default, it’s stored at:
         C:\Windows\System32\Recovery\Winre.wim
      
      You can copy this file to another partition if you prefer to relocate it.
    3. Create a separate recovery partition (optional) Use Disk Management or DiskPart to create a new partition (typically 500 MB – 1 GB, NTFS). Assign it a temporary drive letter, for example R:
         diskpart
         select disk 0
         create partition primary size=1024
         format quick fs=ntfs label="Recovery"
         assign letter=R
         exit
      
    4. Move the WinRE image to the new partition
         mkdir R:\Recovery\WindowsRE
         copy C:\Windows\System32\Recovery\Winre.wim R:\Recovery\WindowsRE\
      
    5. Register the new location
         reagentc /setreimage /path R:\Recovery\WindowsRE
         reagentc /enable
      
    6. Verify the configuration
         reagentc /info
      
      Ensure the path now points to your new partition.

    For OEM-style setups, Microsoft’s Deploy Windows RE guide provides further detail on configuring and managing recovery partitions.


    Option 2: Create a custom bootable WinPE partition

    1. Install the Windows ADK (Assessment and Deployment Kit) Download from Microsoft: Install the Windows ADK You’ll also need the WinPE add-on for ADK.
    2. Create a WinPE image
         copype amd64 C:\WinPE_amd64
      
    3. Customize the image (optional) You can mount the image and add your tools:
         Dism /Mount-Image /ImageFile:C:\WinPE_amd64\media\sources\boot.wim /index:1 /MountDir:C:\mount
      
      Add files or scripts, then commit your changes:
         Dism /Unmount-Image /MountDir:C:\mount /Commit
      
      (See Customize Windows PE boot images for detailed instructions.)
    4. Copy the files to your recovery partition Format the partition as FAT32 or NTFS, then copy all files from C:\WinPE_amd64\media\ to it.
    5. Make the partition bootable Use one of the following:
         bcdboot C:\Windows /s R: /f UEFI
      
      or manually create an entry with BCDEdit:
         bcdedit /copy {default} /d "Windows Recovery"
      
      Then configure the device and path to point to your recovery partition and WinPE image.

    For a more complete overview of tools and deployment scenarios, see Windows ADK for IT Pros – Scenarios Overview.


    I hope this helps.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.