Dell™ Wyse Management Suiteを使用してアプリケーションを削除する方法

Summary: この記事では、Wyse Management Suite(WMS)を使用して提供される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シン クライアント

対象製品:

  • Wyse Management Suite

対象オペレーティング システム:

  • Windows 10 IoT LTSC 2021

Windows 10 IoT LTSC 2021シン クライアントには、いくつかのアプリケーションが工場出荷時にプリインストールされており、リカバリー イメージに含まれています。一部の管理者は、環境で使用されていないアプリケーションを削除したい場合があります。これを行うには、関連するアンインストール コマンドを決定する必要があります。このドキュメントでは、プロセスの概要を説明し、一般的にインストールされるいくつかのアプリケーションのコマンド例を提供します。

関連するアンインストール コマンド文字列を決定する手順は次のとおりです。

  1. 対象のアプリケーションがインストールされているデバイスに管理者としてログインします
  2. レジストリー エディター(regedit.exe)を開きます
  3. HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall キーに移動します。
  4. アンインストールするアプリケーションの名前をレジストリー サブキーで検索し、 DisplayName発行元、または PowerShell クエリに使用できるその他の識別データ。
  5. HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall キーに移動します。
  6. アンインストールするアプリケーションの名前をレジストリー サブキーで検索し、 DisplayName発行元、または PowerShell クエリに使用できるその他の識別データ。
    注:
    • 関連するレジストリ キーと実行する必要があるアンインストール コマンドが複数ある場合があるため、すべてのレジストリ キーを参照して、必要なすべてのアンインストール コマンドをメモしておきます。
    • 2つのUninstallレジストリー キーをエクスポートし、テキスト エディターを使用して情報を検索する方が簡単な場合があります。
  7. 関連するレジストリー キーが見つかったら、アンインストールするアプリケーションに共通するレジストリー値をメモします(たとえば、アンインストール用のVMware Horizon Clientレジストリー エントリーはすべて、 DisplayName フィールドですが、Citrixはそうではなく、Citrixのアンインストールに発行者フィールドを使用する方が簡単です)。
  8. 使用されているアンインストール文字列コマンドに注意してください。ほとんどのプログラムはMsiExec.exeコマンドを使用してアンインストールしますが、Citrixなどの一部のプログラムには、PowerShellスクリプトで考慮する必要がある追加または異なるコマンドがある場合があります。

Citrix Workspaceの削除:

シン クライアントからCitrix Workspaceクライアントを削除するには、レジストリー キーを検索して、キー間で共通する検索文字列を特定します。次のスクリーンショットは、Citrix Workspaceクライアントに関連付けられているレジストリキーの1つの例を示しています。

Citrix Workspaceクライアント レジストリーの例

以下のサンプル スクリプトで、関連するキーを検索するために使用されている Publisher エントリに注目してください。また、次の点にも注意してください。 UninstallStringこの場合、アンインストールにMsiExec.exeコマンドを使用しないため、このエントリを標準のMsiExecコマンドと一緒に処理するには特別な注意を払う必要があります。

次のスクリプトの例では、Citrix Workspaceと関連アプリケーションをWindows 10シン クライアントから削除します。

# this script will uninstall any program with Citrix Systems or Cloud Software Group in the Publisher field
# version 1 - August 6,2024
# search through the uninstall keys in the registry and find any entries with Citrix Systems or Cloud Software Group in the name of the software publisher
# and create a collection from the entries
$programs = Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall,HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object {$_.Publisher -match "Citrix Systems" -or $_.Publisher -match "Cloud Software Group"} | Select-Object -Property DisplayName,Publisher,UninstallString

# for each registry entry in the collection, run the uninstall command
foreach ($program in $programs) {
   # if the uninstall command uses the MSIEXEC.exe run it with following parameters
    if ($program.uninstallstring -match "msiexec.exe"){
        start-process cmd.exe -ArgumentList "/c""$($program.uninstallstring) /quiet /norestart""" -Wait
    }
   # special command for the TrolleyExpress command to uninstall the main Citrix component as it does     not rely on MSIEXEC.exe to uninstall
   else {
        start-process cmd.exe -ArgumentList "/c""$($program.uninstallstring) /silent""" -Wait
    }
}
# check to see if the Citrix Workspace shortcut is on the desktop and delete it
if (test-path "C:\Users\Public\Desktop\Citrix Workspace.lnk") {
		remove-item "C:\Users\Public\Desktop\Citrix Workspace.lnk"
}

PowerShell(ps1)ファイルを作成し、WMSサーバーにコピーして、アンインストール アプリ ポリシーで使用します。

VMware Horizon Clientの削除:

シン クライアントからVMware Horizon Clientを削除するには、レジストリー キーを検索して、キー間で共通する検索文字列を特定します。次のスクリーンショットは、VMware Horizon Clientに関連付けられているレジストリー キーの1つの例を示しています。

VMware Horizon Clientレジストリの例

次の点に注目してください。 DisplayName 以下のサンプル スクリプトで関連するキーを検索するために使用されるエントリ。また、次の点にも注意してください。 UninstallString すべてのアンインストール コマンドでMSiExec.exeコマンドを使用するようにするには、次の手順を実行します。

次のスクリプトの例では、VMware Horizonと関連アプリケーションをWindows 10シン クライアントから削除します。

# this script will uninstall any program with VMWare in the title
# version 1 - August 6,2024
#
# search through the uninstall keys in the registry and find any with VMWare in the Name of the application (DisplayName) and create a collection of the entries
$programs = Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall,HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object {$_.DisplayName -match "VMWare"} | Select-Object -Property DisplayName,UninstallString

# for each registry entry in the collection, run the uninstall command
foreach ($program in $programs) {
    start-process cmd.exe -ArgumentList "/c""$($program.uninstallstring) /quiet /norestart""" -Wait
}

PowerShell(ps1)ファイルを作成し、WMSサーバーにコピーして、アンインストール アプリ ポリシーで使用します。

注:
  • このドキュメントは、Windows 10 IoT Enterprise LTSC 2021ビルド バージョン10.05.15.12.23.00を実行しているLatitude 3440を使用して作成およびテストされています。別のビルドが使用されている場合、レジストリキー情報に若干の違いがある場合があります。
  • Citrixの削除の場合のように、ショートカットなどの追加のファイル削除もスクリプト化する必要がある場合があります。アンインストールが完了したかどうかを判断するには、テストを実行する必要があります。

Affected Products

Latitude Mobile Thin Client, OptiPlex Thin Client, Wyse Hardware, Wyse Management Suite
Article Properties
Article Number: 000222586
Article Type: How To
Last Modified: 23 Aug 2024
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.