高效管理戴尔瘦客户端上的 Windows 10 IoT 更新

Summary: 如何在戴尔瘦客户端上管理 Windows 10 IoT 更新。我们的指南通过使用 PowerShell 脚本隐藏不必要的更新,帮助您避免更新过载。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

受影响的平台:

  • 戴尔瘦客户端

受影响的操作系统:

  • 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 可用于将此脚本远程交付给瘦客户端。

Affected Products

Latitude Mobile Thin Client, OptiPlex Thin Client, Wyse Hardware, Wyse Management Suite
Article Properties
Article Number: 000224326
Article Type: How To
Last Modified: 10 Jun 2024
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.