0WindowsUpdate图标视窗 7 to 10 升级错误0x8007001f

我最近想升级一个Windows 7 PC到Windows 10 但经过几次重新启动的窗口 10 安装与错误失败 “The installation failed in the SAFE_OS phase with an error during REPLACE_OC operationwith code 0x8007001f – 0x20006.

此修复程序

I’ll start with the eventual fix that worked, but below I will also include the instructions for repairing Windows 7 system files as these may also be useful in other circumstances, although they I didn’t manage to fix my problem with them on this occasion.

The actual “使固定” was simple. I did an “升级” install of the existing Windows 7 SP1 to…. 视窗 7 SP1! This is basically a repair install. You need a Windows 7 SP1 ISO which matches the version of windows installed. 它解压到一个文件夹,然后运行安装程序. You will get the option to keep all existing files which you must select. Once the repair install is successful you can run the windows 10 upgrade and if you’re lucky like I was it will then complete successfully.

The Windows 7 ISO 尚可 downloaded from Microsoft (which is obviously much safer than from 3rd party sites) but you will need a legitimate 零售 关键 (不是 OEM 可悲的是关键) 这样做. If you are forced to resort to unofficial sources please make sure you check the hash of the file to ensure it hasn’t been altered.

修复的Windows 7 系统文件

注: Before starting make sure you have run a disk scan with chkdsk /f /r

I tried running the 吃不到葡萄说葡萄酸 工具 (aka the System Update Readiness Tool KB947821) but gave up with it after several hours as there was clearly significant corruption somewhere. 相反,我装 KB2966583 which installed quickly and allowed me to use the DISM tool to log and repair any corruption of system files. 吃不到葡萄说葡萄酸 is basically just a wrapper for DISM with no visual feedback so using DISM manually is preferable.

After using the CheckSUR log (%WINDIR%日志 CBS CheckSUR.log) I was able to identify a large number of corrupt update files that needed to be repaired. This is easier to do via a bit of manipulation in notepad and then excel

  • 在记事本中打开文件
  • delete everything at the top of the file down to and inc “Checking Packages”
  • delete everything at the bottom of the file from “Checking Component Store” and downwards
  • 搜索替换以下内容
    • (f)CBS MUM Missing0x00000002servicing\Packages\Package_” -> “” (即. 空白)
    • _” -> “,” (underscore to comma)
    • ~” -> “,” (波浪号逗号)
  • 将文件保存为CSV
  • 在Excel中打开
  • 排序列A
  • Delete all rows starting with (使固定)
  • 重新排序列C (这是唯一感兴趣的列现在)
  • 可能有很多重复的条目在C列. simply remove all duplicates so there is just 1 进入每个 KB
  • 这是您需要下载的更新列表

Once you’ve got the list of needed updates

  • Check which version of windows you are runningx64 or x86
  • Download the packages from the microsoft update catalog or use google for the few that aren’t listed on the update catalog. Make sure you download the updates for the correct OS: 窗 7, 64位或32位.
  • 浏览 %SYSTEMROOT%\CheckSUR\ and create a folder calledpackagesif it doesn’t already exist
  • 复制的.msu文件到 %SYSTEMROOT%\CheckSUR\packages\
  • Open an elevated command prompt
  • DISM /Online /Cleanup-Image /Scanhealth
  • When it has finished check the CheckSUR log again
  • repeat the process with additional updates if needed
  • 当DISM是幸福的, 跑 sfc /scannow

Once this is complete your windows 7 应充分固定, 但是作为我的例子显示, 那里可以清楚地仍然在某些情况下一些问题. If I had to guess the issue at this point is likely to be with permissions or possibly with the registry. This process should at least fix windows updates.

请通过下面的评论给我们你的想法! 如果您想订阅,请使用菜单上的订阅链接右上方. 您还可以通过使用下面的链接社会分享这与你的朋友. 干杯.

发表评论