Beheer Windows 10 IoT-updates op Dell thin clients efficiënt

Summary: Windows 10 IoT-updates beheren op Dell thin clients. Onze gids helpt u overbelasting van updates te voorkomen door onnodige updates te verbergen met PowerShell-scripts.

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

Betreffende platforms:

  • Dell Thin Clients

Betreffende besturingssystemen:

  • Windows 10 IoT LTSC 2021

Van tijd tot tijd brengt Microsoft updates uit voor Windows die niet van toepassing zijn op de Windows 10 IoT thin clients van Dell, maar deze worden nog steeds weergegeven als ontbrekende QFE's wanneer een updatebewerking wordt uitgevoerd.

Bijvoorbeeld:

De recente KB5034441-update kon niet worden toegepast op de Windows 10 IoT 2021 LTSC thin clients van Dell omdat de vereiste partitie niet aanwezig was, maar Windows bleef deze als ontbrekend identificeren.

Powershell-script om KB5034441 te verbergen:

In het volgende PowerShell-scriptvoorbeeld verbergt u KB5034441. Het kan worden aangepast om andere Microsoft-updates te verbergen als dat nodig is door de Hide-Windowsupdate Opdracht.

# 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
Opmerking:
  • Dit PowerShell-script wordt in de huidige staat geleverd. Zorg ervoor dat u op één of twee apparaten test voordat u implementeert op de gehele thin client-vloot.
  • Wyse Management Suite kan worden gebruikt om dit script op afstand aan thin clients te leveren.

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.