# win10-recovery-partition ## Commandes ``` diskpart select disk 0 list part rem Select main partition or partition which to shrink by 1GB select part <#> shrink desired=1024 create part primary list part rem Select new recovery part just made sel part <#> rem MBR ONLY set id=27 REM GPT ONLY set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac" gpt attributes=0x8000000000000001 ``` The Recovery volume/partition should be hidden and labeled as "Recovery" with no drive letter assigned now ## Then... - copy WinRE.wim and the uninitialized ReAgent.xml files from the installation Media to C:\Windows\System32\Recovery - Mount the Installation ISO / Plug-in ThumbDrive. If already mounted, Under Sources folder, Use 7-zip to open either install.esd or install.wim then navigate to \Windows\system32\Recovery then copy both files. - NOTE: the install.esd or install.wim might contain multiple editions of Windows, just use any index. Also Recovery folder is hidden, you'd need to set the option to show hidden. - From Admin command, run reagentc /enable. This will move WinRe.wim to the Recovery partition and set the GUID and location in ReAgent.xml