品牌机Windows10重置功能WinRE失效处理方法

1.先用DG分区工具把恢复分区盘符分配出来,比如右击恢复分区---分配盘符E。

2.在恢复分区中创建文件夹E:\Recovery\WindowsRE,有些可能有这2个文件夹,如果有的话,就将WindowsRE里面的所有文件全部删掉。

3.用360压缩软件打开install.win,提取windows\system32\recovery目录下的WinRE.wim和ReAgent.xml,复制到E:\Recovery\WindowsRE下;拷贝Windows\System32\boot.sdi到E:\Recovery\WindowsRE中。【即E:\RecoveryWindowsRE中存在WinRE.wim,ReAgent.xml,boot.sdi三个文件

4.依次运行下列命令【顺序不要错,如果错了可以重新来操作】:
reagentc /info
reagentc /setreimage /path E:\Recovery\WindowsRE
reagentc /enable

执行完上述命令就已经修复完成了,如果运行reagentc /enable命令报错,就需要重新按顺序操作命令一遍,或者要删除C:\Windows\system32\recovery目录下的ReAgent.xml文件。然后在运行上面的代码即可!

下面附上修复本地C盘RE功能的代码:

@echo off
attrib C:\Windows\System32\Recovery\*.* -h -s -r
del /f /s /q C:\Windows\System32\Recovery\*.*
if exist C:\recovery\WindowsRE\boot.sdi (attrib C:\recovery\WindowsRE\boot.sdi -h -s -r & del /f /s /q C:\recovery\WindowsRE\boot.sdi)
if exist C:\recovery\WindowsRE\ReAgent.xml (attrib C:\recovery\WindowsRE\ReAgent.xml -h -s -r & del /f /s /q C:\recovery\WindowsRE\ReAgent.xml)
attrib C:\recovery\WindowsRE\WinRE.wim -h -s -r
attrib C:\recovery\WindowsRE -h -s -r
Reagentc /Setreimage /path C:\Recovery\WindowsRE
Reagentc /Setreimage /Path C:\Recovery\WindowsRE /bootkey 3b00
Reagentc /Setreimage /Path C:\Recovery\WindowsRE /target C:\Windows
Reagentc /setosimage /path D:\~1 /index 1
Reagentc /setosimage /path D:\~1 /index 1 /target C:\Windows
attrib C:\recovery\WindowsRE\boot.sdi +h +s +r
attrib C:\recovery\WindowsRE\WinRE.wim +h +s +r
attrib C:\recovery\WindowsRE +h +s +r
Reagentc /Enable
exit

  • 6
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值