Hantera Windows 10 IoT-uppdateringar på Dells tunna klienter effektivt
Summary: Hantera Windows 10 IoT-uppdateringar på Dells tunna klienter. Vår guide hjälper dig att undvika överbelastning av uppdateringar genom att dölja onödiga uppdateringar med PowerShell-skript. ...
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örda plattformar:
- Dells tunna klienter
Berörda operativsystem:
- Windows 10 IoT LTSC 2021
Då och då släpper Microsoft uppdateringar till Windows som inte gäller för Dells tunna Windows 10 IoT-klienter, men de visas fortfarande som saknade QFE:er när en uppdateringsåtgärd utförs.
Till exempel:
Den senaste KB5034441 uppdateringen kunde inte tillämpas på Dells tunna klienter Windows 10 IoT 2021 LTSC eftersom den nödvändiga partitionen inte fanns, men Windows fortsatte att identifiera den som saknad.
PowerShell-skript för att dölja KB5034441:
Följande PowerShell-skriptexempel döljer KB5034441. Den kan ändras för att dölja andra Microsoft-uppdateringar efter behov genom att ändra Hide-Windowsupdate Kommandot.
# 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
Obs!
- Det här PowerShell-skriptet tillhandahålls som det är. Se till att du testar på en eller två enheter innan du driftsätter till hela flottan av tunna klienter.
- Wyse Management Suite kan användas för att leverera detta skript till tunna klienter på distans.
Affected Products
Latitude Mobile Thin Client, OptiPlex Thin Client, Wyse Hardware, Wyse Management SuiteArticle 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.