2024.1 KB5034441 无法安装问题解决记录

背景

系统:win10 22h2

问题:安装 KB5034441 过程中会出现 0x80070643 错误

搜索关键内容:Win10 用户反馈无法安装微软 1 月安全更新,出现 0x80070643 错误

解决方案

意外情况

reagentc /enable 无Windows RE映像

解决方式:未找到Windows RE映像怎么办?立即修复它!

查找winre.wim
dir /a /s c:\winre.wim

找到Winre.wim文件后,在命令提示符中输入以下命令将此文件复制到默认位置。
attrib -h -s c:\**\winre.wim
xcopy /h c:\**\winre.wim c:\Windows\System32\Recovery

然后请您执行以下命令将Winre.wim文件路径替换为默认配置的路径
reagentc /setreimage /path C:\windows\system32\recovery

执行以下命令以启用恢复环境并检查其状态
reagentc /enable
reagentc /info

总体方案

参考:KB5028997:手动调整分区大小以安装 WinRE 更新的说明 – Microsoft 支持 — KB5028997: Instructions to manually resize your partition to install the WinRE update – Microsoft Support

查看并停止禁用WinRE=>压缩系统盘空间,留出一定容量(300MB以上)作为恢复分区容量=>激活WinRE

示例代码:
eg:手动将分区大小调整 250 MB
1.以管理员身份打开命令提示符窗口(cmd)。

To check the WinRE status, run reagentc /info. If the WinRE is installed, there should be a “Windows RE location” with a path to the WinRE directory. An example is, “Windows RE location: [file://%3f/GLOBALROOT/device/harddisk0/partition4/Recovery/WindowsRE]\\?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE.” Here, the number after “harddisk” and “partition” is the index of the disk and partition WinRE is on.
若要检查 WinRE 状态,请运行 reagentc /info。如果安装了 WinRE,则应有一个“Windows RE 位置”,其中包含指向 WinRE 目录的路径。例如,“Windows RE 位置:[file://%3f/GLOBALROOT/device/harddisk0/partition4/Recovery/WindowsRE]\\?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE。此处,“硬盘”和“分区”后面的数字是 WinRE 所在的磁盘和分区的索引。
若要禁用 WinRE,请运行 reagentc /disable

2.打开diskpart
run diskpart
list disk
sel disk * <OS disk index>
ps:* 为数字(系统盘所在disk)

optional:无多余空间则需压缩卷,若有多余未分配空间可忽略
list part
sel part <OS partition index>
ps:(选择操作系统分区)
shrink desired=250 minimum=250
ps: (250 = 250mb)

optional:
若要选择 WinRE 分区,请运行sel part <WinRE partition index>,如sel part 1
若要删除 WinRE 分区,请运行 delete partition override

3.创建新的恢复分区(recovery partition)。

First, check if the disk partition style is a GUID Partition Table (GPT) or a Master Boot Record (MBR).  To do that, run list disk. Check if there is an asterisk character (*) in the “Gpt” column.  If there is an asterisk character (*), then the drive is GPT. Otherwise, the drive is MBR.
首先,检查磁盘分区样式是 GUID 分区表 (GPT) 还是主启动记录 (MBR)。为此,请运行 list disk。检查“Gpt”列中是否有星号字符 (*)。如果有星号字符 (*),则驱动器为 GPT。否则,驱动器为 MBR。

!如果您的磁盘是 GPT,请运行 create partition primary id=de94bba4-06d1-4d40-a16a-bfd50179d6ac,然后运行命令 gpt attributes =0x8000000000000001

!!如果您的磁盘是 MBR,请运行 create partition primary id=27

optional:
若要格式化分区,请运行 format quick fs=ntfs label=“Windows RE tools”
若要确认已创建 WinRE 分区,请运行 list vol
要退出 diskpart,请运行 exit
若要重新启用 WinRE,请运行 reagentc /enable
若要确认 WinRE 的安装位置,请运行 reagentc /info
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇