Ефективно керуйте оновленнями Windows 10 IoT на тонких клієнтах Dell
Summary: Як керувати оновленнями Windows 10 IoT у тонких клієнтах Dell. Наш посібник допоможе вам уникнути перевантаження оновлень, приховуючи непотрібні оновлення за допомогою сценаріїв 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
Платформи, яких це стосується:
- Тонкі клієнти Dell
Операційні системи, яких це стосується:
- Windows 10 IoT LTSC 2021
Час від часу корпорація Майкрософт випускає оновлення для Windows, які не застосовуються до тонких клієнтів Dell Windows 10 IoT, але вони все одно відображаються як відсутні QFE під час виконання операції оновлення.
Наприклад:
Нещодавнє оновлення KB5034441 не вдалося застосувати до тонких клієнтів Dell Windows 10 IoT 2021 LTSC, оскільки потрібного розділу не було, але Windows продовжувала ідентифікувати його як відсутній.
Сценарій Powershell для приховування KB5034441:
Наведений нижче приклад сценарію 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 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.