|
|
发表于 2026-3-29 17:18:03
|
显示全部楼层
在c盘新建文件夹PE
mkdir C:\PE
放入boot.wim和boot.sdi
C:\PE\boot.wim
C:\PE\boot.sdi
然后使用bcdedit命令添加pe到当前系统
bcdedit /create /d "Windows PE" /application osloader
这里会出现一个随机的{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
的GUID
记下这个guid
然后执行
bcdedit /set {{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} device partition=C:
bcdedit /set {{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} osdevice partition=C:
bcdedit /set {{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} path \PE\boot.wim
bcdedit /set {{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} sdpath \PE\boot.sdi
bcdedit /set {{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} locale zh-CN
bcdedit /set {{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} winpe yes
bcdedit /set {{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} detecthal yes
bcdedit /displayorder {GUID} /addlast
bcdedit /timeout 10
如果你看不懂就去使用bootice |
|