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)
- Check if WinRE is already enabled
If it says Windows RE status: Disabled, enable it with:reagentc /info
(Official command reference: REAgentC command-line options)reagentc /enable - Find the WinRE image
By default, it’s stored at:
You can copy this file to another partition if you prefer to relocate it.C:\Windows\System32\Recovery\Winre.wim - 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 - Move the WinRE image to the new partition
mkdir R:\Recovery\WindowsRE copy C:\Windows\System32\Recovery\Winre.wim R:\Recovery\WindowsRE\ - Register the new location
reagentc /setreimage /path R:\Recovery\WindowsRE reagentc /enable - Verify the configuration
Ensure the path now points to your new partition.reagentc /info
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
- 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.
- Create a WinPE image
copype amd64 C:\WinPE_amd64 - Customize the image (optional)
You can mount the image and add your tools:
Add files or scripts, then commit your changes:Dism /Mount-Image /ImageFile:C:\WinPE_amd64\media\sources\boot.wim /index:1 /MountDir:C:\mount
(See Customize Windows PE boot images for detailed instructions.)Dism /Unmount-Image /MountDir:C:\mount /Commit - 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. - Make the partition bootable
Use one of the following:
or manually create an entry with BCDEdit:bcdboot C:\Windows /s R: /f UEFI
Then configure the device and path to point to your recovery partition and WinPE image.bcdedit /copy {default} /d "Windows Recovery"
For a more complete overview of tools and deployment scenarios, see Windows ADK for IT Pros – Scenarios Overview.
I hope this helps.