Applies ToWindows 10 Home and Pro, version 21H2 Windows 10 Enterprise and Education, version 21H2 Windows 10 IoT Enterprise, version 21H2 Windows 10 Home and Pro, version 22H2 Windows 10 Enterprise Multi-Session, version 22H2 Windows 10 Enterprise and Education, version 22H2 Windows 10 IoT Enterprise, version 22H2

重要说明如果 Windows 恢复环境 (WinRE) 满足以下任何条件,则不会提供此更新:

  • 如果 WinRE 恢复分区没有足够的可用空间,请参阅“摘要”部分中的 注释 。 该说明提供了有关如何增加 WinRE 恢复分区中的可用空间的说明。

  • 如果 WinRE 恢复分区是使用 中的过程手动更新,请将更新包添加到 Windows RE 并且已经为最新。

  • 如果 WinRE 映像的版本大于或等于版本 10.0.19041.3920。 若要确定 WinRE 映像的版本,请参阅“验证已安装的 WinRE 版本的方法”部分。

  • 如果正在运行的电脑没有 WinRE 恢复分区。 若要验证是否已启用 WinRE,可以在提升的命令提示符下运行以下命令:reagentc /info。 如果已启用 WinRE,则输出中会显示 Windows RE 状态,值为“已启用”。 在此方案中,可能需要此更新。

更改日期

更改说明

2024 年 8 月 14 日

  • 将 WinRE 版本更新为大于或等于版本 10.0.19041.3920。

2024 年 8 月 13 日

  • 已从已停用的更新KB5034441移动了此内容。

  • 添加了指向“摘要”部分中关于如何增加 WinRE 恢复分区中可用可用空间的 注释 的内容。

  • 更新了“摘要”部分,以删除有关 CVE 的不需要的信息。

2024 年 7 月 9 日

  • 在文章顶部添加了 重要 注释。 此说明合并了不需要此 WinRE 更新且不会提供此更新的条件。

  • 修订了 注释 有关如何将 WinRE 恢复分区增加到 250 MB 可用空间的“摘要”部分。

摘要

此更新会自动将安全 OS 动态更新 (KB5034232) 应用到正在运行的电脑上的 Windows 恢复环境 (WinRE) 。 此更新安装对 Windows 恢复功能的改进。

注意 此更新需要恢复分区中有 250 MB 的可用空间才能成功安装。

若要确保设备已获得此更新,请按照说明手动调整分区大小或使用示例脚本来增加 WinRE 恢复分区的大小。

分区有足够的磁盘空间后,单击 开始 > 设置Windows 更新 > 检查是否有更新 向你提供,然后安装它。

如何获取此更新

此更新可通过以下发布渠道获得。

发布频道

可用

Windows 更新

Microsoft 更新目录

Windows Server Update Services (WSUS) 和 Microsoft Endpoint Configuration Manager

先决条件

电脑在恢复分区中必须有 250 MB 的可用空间才能成功应用此更新。

重启信息

应用此更新后,无需重启设备。

删除信息

应用到 Windows 映像后,无法删除此更新。

更新替代信息

此更新将替换以前发布的更新KB5034441。

验证此更新的安装

安装此更新后,设备上安装的 WinRE 版本应大于或等于版本 10.0.19041.3920

若要获取安装的 WinRE 版本,请使用管理员凭据运行以下 PowerShell 脚本“GetWinReVersion.ps1”。 运行该脚本后,应该会收到已安装的 WinRE 版本,如以下示例所示:

GetWinReVersion.ps1 PowerShell 脚本

################################################################################################

#

# Copyright (c) Microsoft Corporation.

# Licensed under the MIT License.

#

# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR

# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE

# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER

# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,

# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE

# SOFTWARE.

#

################################################################################################
# Function to get WinRE path

function GetWinREPath {

    $WinRELocation = (reagentc /info | Select-String "Windows RE location")

    if ($WinRELocation) {

        return $WinRELocation.ToString().Split(':')[-1].Trim()

    } else {

        Write-Host "Failed to find WinRE path" -ForegroundColor Red

        exit 1

    }

}

 
# Creates and needs to be return the mount directory
function GetMountDir {
    # systemdirve\mnt
    $MountDir = "$env:SystemDrive\mnt"
    if (-not (Test-Path $MountDir)) {
        New-Item -ItemType Directory -Path $MountDir -Force | Out-Null
    }
    return $MountDir
}  

# Function to get WinRE version
function GetWinREVersion {

    $mountedPath = GetMountDir
    $filePath = "$mountedPath\Windows\System32\winpeshl.exe"

    $WinREVersion = (Get-Item $filePath).VersionInfo.FileVersionRaw.Revision

    return [int]$WinREVersion

}


# Main Execution

$WinREPath = GetWinREPath


# Make dir C:\mnt if not exists

$TempDir = GetMountDir


# Get the read write permission for this directory

if (-not (Test-Path $TempDir)) {

    New-Item -ItemType Directory -Path $TempDir -Force | Out-Null

}


# Mount WinRE image

dism /Mount-Image /ImageFile:"$WinREPath\winre.wim" /Index:1 /MountDir:"$TempDir"


$WinREVersion = GetWinREVersion

Write-Host "WinRE Version: $WinREVersion" -ForegroundColor Cyan

dism /Unmount-Image /MountDir:"$TempDir" /Discard

Remove-Item -Path $TempDir -Force -Recurse

参考资料

用于描述 Microsoft 软件更新的标准术语说明

需要更多帮助?

需要更多选项?

了解订阅权益、浏览培训课程、了解如何保护设备等。