高效管理戴尔瘦客户端上的 Windows 10 IoT 更新
摘要: 如何在戴尔瘦客户端上管理 Windows 10 IoT 更新。我们的指南通过使用 PowerShell 脚本隐藏不必要的更新,帮助您避免更新过载。
本文适用于
本文不适用于
本文并非针对某种特定的产品。
本文并非包含所有产品版本。
说明
受影响的平台:
- 戴尔瘦客户端
受影响的操作系统:
- Windows 10 IoT LTSC 2021
Microsoft 有时会发布不适用于戴尔 Windows 10 IoT 瘦客户端的 Windows 更新,但在执行更新操作时,它们仍显示为缺少 QFE。
例如:
最近的 KB5034441 更新无法应用于戴尔的 Windows 10 IoT 2021 LTSC 瘦客户端,因为所需的分区不存在,但 Windows 一直将其标识为缺失。
用于隐藏KB5034441的 Powershell 脚本:
以下 PowerShell 脚本示例隐藏KB5034441。可以根据需要修改它以隐藏其他 Microsoft 更新,方法是修改 Hide-Windowsupdate 相同名称。
# This section of code will restart the script with elevated privileges if it is not already running elevated
# Get the ID and security principal of the current user account
$myWindowsID=[System.Security.Principal.WindowsIdentity]::GetCurrent()
$myWindowsPrincipal=new-object System.Security.Principal.WindowsPrincipal($myWindowsID)
# Get the security principal for the Administrator role
$adminRole=[System.Security.Principal.WindowsBuiltInRole]::Administrator
# Check to see if we are currently running "as Administrator"
if ($myWindowsPrincipal.IsInRole($adminRole))
{
# We are running "as Administrator" - so change the title and background color to indicate this
$Host.UI.RawUI.WindowTitle = $myInvocation.MyCommand.Definition + "(Elevated)"
$Host.UI.RawUI.BackgroundColor = "DarkBlue"
clear-host
}
else
{
# We are not running "as Administrator" - so relaunch as administrator
# Create a new process object that starts PowerShell
$newProcess = new-object System.Diagnostics.ProcessStartInfo "PowerShell";
# Specify the current script path and name as a parameter
$newProcess.Arguments = $myInvocation.MyCommand.Definition;
# Indicate that the process should be elevated
$newProcess.Verb = "runas";
# Start the new process
[System.Diagnostics.Process]::Start($newProcess);
# Exit from the current, unelevated, process
exit
}
# Run your code that needs to be elevated here
Install-PackageProvider NuGet -Force
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module -name PSWindowsUpdate -Confirm:$false
Import-Module PSWindowsUpdate
Hide-Windowsupdate -KBArticleID KB5034441 -Confirm:$false
提醒:
- 此 PowerShell 脚本按原样提供。在部署到整个瘦客户端机群之前,请确保在一个或两个设备上进行测试。
- Wyse Management Suite 可用于将此脚本远程交付给瘦客户端。
受影响的产品
Latitude Mobile Thin Client, OptiPlex Thin Client, Wyse Hardware, Wyse Management Suite文章属性
文章编号: 000224326
文章类型: How To
上次修改时间: 10 6月 2024
版本: 2
从其他戴尔用户那里查找问题的答案
支持服务
检查您的设备是否在支持服务涵盖的范围内。