
DiskPart 工具展开代码diskpart
展开代码list disk
展开代码select disk 0
展开代码list partition
展开代码select partition X
展开代码delete partition override

展开代码select partition Y
展开代码shrink desired=320

展开代码create partition primary size=1024
展开代码format fs=ntfs quick label="Recovery"
展开代码set id=de94bba4-06d1-4d40-a16a-bfd50179d6ac override
展开代码get attributes=0x000000000000001
注:8和1之间共14个零
展开代码exit



展开代码mkdir "%USERPROFILE%\Downloads\Images" "%USERPROFILE%\Downloads\Mount"
展开代码xcopy "F:\Sources\install.wim" "%USERPROFILE%\Downloads\Images\" /H /E /C /I /Y

展开代码dism /Get-WimInfo /WimFile:F:\Sources\install.wim
展开代码dism /Mount-Image /ImageFile:"%USERPROFILE%\Downloads\Images\install.wim" /Index:4 /MountDir:"%USERPROFILE%\Downloads\Mount"
展开代码xcopy "%USERPROFILE%\Downloads\Mount\Windows\System32\Recovery\winre.wim" "C:\Windows\System32\Recovery\" /H /E /C /I /Y

展开代码reagentc /enable
展开代码reagentc /info

展开代码dism /Unmount-Image /MountDir:"%USERPROFILE%\Downloads\Mount" /discard dism /Cleanup-Wim
展开代码rmdir /S /Q "%USERPROFILE%\Downloads\Images" rmdir /S /Q "%USERPROFILE%\Downloads\Mount"

完成以上所有步骤后,Windows 11 的「恢复分区」就已经重建成功。你可以通过以下步骤测试是否正常可用:

本文作者:zzz
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!