Applies ToWindows Server 2022

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

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

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

  • 如果 WinRE 影像的版本大於或等於版本 10.0.20348.3445。 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 狀態,並顯示 [已啟用] 值。 在此案例中,可能需要進行此更新。

摘要

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

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

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

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

已知問題

徵兆

安裝此更新之後,您可能會在 [Windows Update 設定] 頁面中看到下列錯誤訊息:0x80070643 – ERROR_INSTALL_FAILURE。 此錯誤訊息不正確,也不會影響更新或裝置功能。 雖然錯誤訊息表示更新尚未完成,但 WinRE 更新通常會在裝置重新啟動後成功套用。 Windows Update 可能會繼續將更新顯示為失敗,直到下一次每日掃描為止,此時將不再提供更新,並且會自動清除失敗訊息。

後續步驟

我們正在開發解決方案,並且會在有解決方案可用時提供更多資訊。

如何取得此更新

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

發行管道

可供使用

Windows Update

提供

Microsoft Update Catalog

無

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

無

必要條件

電腦必須在修復磁碟分割區中有 250 MB 的可用空間,才可成功套用此更新。

重新啟動資訊

套用此更新之後,您不需要重新啟動裝置。

移除資訊

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

更新取代資訊

此更新會取代先前發行的更新 KB5050410

確認此更新的安裝

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

若要安裝 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?

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