Applies To
Windows Server 2022

重要 如果您的 Windows 修復環境 (WinRE) 符合下列任一條件,將不會提供此更新:

  • 如果 WinRE 修復磁碟分區沒有足夠的可用空間,請參閱一節中的 附註 。 附註會提供如何增加 WinRE 修復磁碟分區中可用空間的相關指示。

  • 如果 WinRE 修復磁碟分割已使用 將更新套件新增至 Windows RE 中的程序手動更新,且已更新到最新狀態。

  • 如果 WinRE 影像的版本大於或等於版本 10.0.20348.2201。 To determine the version of your WinRE image, see the "Methods to verify the WinRE version installed" section.

  • 如果您執行的電腦沒有 WinRE 修復磁碟分割。 若要確認您是否已啟用 WinRE,請在提升權限的命令提示字元中執行下列命令: reagentc /info。 如果已啟用 WinRE,您會在輸出中看到 Windows RE 狀態,並顯示 [已啟用] 值。 在此案例中,可能需要進行此更新。

變更日期

變更描述

2024 年 8 月 14 日

  • 已將 WinRE 版本更新為大於或等於版本 10.0.20348.2201

2024 年 8 月 13 日

  • 在文章頂端新增的 重要 注意事項。 本注意事項結合了不需要 WinRE 更新且不提供此 WinRE 更新的條件。

  • 已修訂「摘要」一節中關於如何將 WinRE 修復磁碟分割增加為 250 MB 的可用空間的 注意事項

  • 將此內容從已停用的更新KB5034439移動。

  • 新增要指向「摘要」一節中有關如何增加 WinRE 修復磁碟分區中可用空間之 注意 事項的內容。

  • 更新 [摘要] 區段以移除 CVE 的相關信息。

摘要

此更新會自動將安全作系統動態更新 (KB5034235) 套用至執行中計算機上的 Windows 修復環境 (WinRE) 。 更新會安裝 Windows 復原功能的改良功能。

注意此更新需要修復磁碟分割區中有 250 MB 的可用空間才可成功安裝。

如果您想要確定您的裝置已提供此更新,請依照指示手動調整磁碟分區大小,或使用範例腳本來增加 WinRE 修復磁碟分區大小。

當磁碟分割有足夠的磁碟空間後,請點擊 [開始] > [設定] > [Windows Update] > [檢查是否有更新] 以獲取更新,然後再進行安裝。

如何取得此更新

此更新可透過下列發行版本通道取得。

發行管道

可供使用

Windows Update

Microsoft Update Catalog

Windows Server Update Services (WSUS) 和 Microsoft Endpoint 設定管理員。

必要條件

裝置必須在修復磁碟分割中有 250 MB 的可用空間,才可獲取並套用此更新。

重新啟動資訊

套用此更新之後,您不需要重新開機您的電腦。

移除資訊

此更新套用至 Windows 映像後,即無法移除。

更新取代資訊

此更新會取代先前發行的更新KB5034439。

確認此更新的安裝

安裝此更新之後,裝置上安裝的 WinRE 版本應該大於或等於版本 10.0.20348.2201

若要安裝 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 軟體更新所使用的標準術語說明

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。