Gestion efficace des mises à jour Windows 10 IoT sur les clients légers Dell
Résumé: Gestion des mises à jour Windows 10 IoT sur les clients légers Dell. Notre guide vous aide à éviter la surcharge de mises à jour en dissimulant les mises à jour inutiles avec des scripts PowerShell. ...
Cet article concerne
Cet article ne concerne pas
Cet article n’est associé à aucun produit spécifique.
Toutes les versions du produit ne sont pas identifiées dans cet article.
Instructions
Plates-formes concernées :
- Clients légers Dell
Systèmes d’exploitation concernés :
- Windows 10 IoT LTSC 2021
De temps à autre, Microsoft publie des mises à jour de Windows qui ne s’appliquent pas aux clients légers Dell Windows 10 IoT, mais qui s’affichent toujours comme QFE manquants lorsqu’une opération de mise à jour est effectuée.
Par exemple :
La récente mise à jour KB5034441 ne s’est pas appliquée aux clients légers Windows 10 IoT 2021 LTSC de Dell, car la partition requise n’était pas présente, mais Windows a continué à l’identifier comme manquante.
Script Powershell pour masquer KB5034441 :
L’exemple de script PowerShell suivant masque KB5034441. Il peut être modifié pour masquer d’autres mises à jour Microsoft si nécessaire en modifiant l’attribut 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
Remarque :
- Ce script PowerShell est fourni en l’état. Assurez-vous de tester sur un ou deux appareils avant de déployer sur l’ensemble du parc de clients légers.
- Vous pouvez utiliser Wyse Management Suite pour fournir ce script aux clients légers à distance.
Produits concernés
Latitude Mobile Thin Client, OptiPlex Thin Client, Wyse Hardware, Wyse Management SuitePropriétés de l’article
Numéro d’article: 000224326
Type d’article: How To
Dernière modification: 10 Jun 2024
Version: 2
Trouvez des réponses à vos questions auprès d’autres utilisateurs Dell
Services de support
Vérifiez si votre appareil est couvert par les services de support.