有效率地管理 Dell 精簡型用戶端上的 Windows 10 IoT 更新
摘要: 如何在 Dell 精簡型用戶端上管理 Windows 10 IoT 更新。本指南可協助您隱藏 PowerShell 指令檔不必要的更新,以避免更新超載。
本文章適用於
本文章不適用於
本文無關於任何特定產品。
本文未識別所有產品版本。
說明
受影響的平台:
- Dell 精簡型用戶端
受影響的作業系統:
- Windows 10 IoT LTSC 2021
Microsoft 會不時發佈不適用於 Dell Windows 10 IoT 精簡型用戶端的 Windows 更新,但在執行更新作業時,這些更新仍會顯示為遺失的 QFE。
例如:
最近的 KB5034441 更新無法套用至 Dell 的 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
上次修改時間: 20 5月 2026
版本: 3
向其他 Dell 使用者尋求您問題的答案
支援服務
檢查您的裝置是否在支援服務的涵蓋範圍內。