应用对象
Windows Server, version 23H2

摘要

此更新对 Windows Server 版本 23H2 中的 Windows 恢复环境进行了改进。

如何获取此更新

安装此更新

若要安装此更新,请使用以下发布频道之一。

可用

后续步骤

可以通过 Windows 更新获取此更新。 此更新会自动下载并安装。

先决条件

应用此更新没有任何先决条件。

重启信息

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

删除信息

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

更新替代信息

此更新将替换以前发布的更新 KB5041593

验证此更新的安装

安装此更新后,设备上安装的 WinRE 版本应为 10.0.25398.1121

请使用管理员凭据运行以下 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软件更新的标准术语的说明

查询字词:safeos du

需要更多帮助?

需要更多选项?

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