Administrer Windows 10 IoT-opdateringer effektivt på tynde Dell-klienter

Summary: Sådan administrerer du Windows 10 IoT-opdateringer på tynde Dell-klienter. Vores vejledning hjælper dig med at undgå overbelastning af opdateringer ved at skjule unødvendige opdateringer med 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

Berørte platforme:

  • Tynde Dell-klienter

Påvirkede operativsystemer:

  • Windows 10 IoT LTSC 2021

Fra tid til anden udgiver Microsoft opdateringer til Windows, der ikke gælder for Dells tynde Windows 10 IoT-klienter, men de vises stadig som manglende QFE'er, når en opdateringshandling udføres.

F.eks.:

Den seneste KB5034441-opdatering kunne ikke anvendes på Dells tynde Windows 10 IoT 2021 LTSC-klienter, fordi den krævede partition ikke var til stede, men Windows blev ved med at identificere den som manglende.

Powershell-script til at skjule KB5034441:

Følgende PowerShell-scripteksempel skjuler KB5034441. Det kan ændres for at skjule andre Microsoft-opdateringer efter behov ved at ændre Hide-Windowsupdate Kommando.

# 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
Bemærk:
  • Dette PowerShell-script leveres, som det er. Sørg for at teste på en eller to enheder, før du implementerer den i hele flåden af tynde klienter.
  • Wyse Management Suite kan udnyttes til at levere dette script til tynde klienter eksternt.

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.