如何使用 Wyse Management Suite 刪除應用程式
摘要: 本文說明如何使用使用 Wyse Management Suite (WMS) 提供的 PowerShell 指令檔,判斷遠端解除安裝應用程式的命令。
本文章適用於
本文章不適用於
本文無關於任何特定產品。
本文未識別所有產品版本。
說明
受影響的平台:
- Dell 精簡型用戶端
受影響的產品:
- Wyse Management Suite
受影響的作業系統:
- Windows 10 IoT LTSC 2021
Windows 10 IoT LTSC 2021 精簡型用戶端在出廠時已預先安裝數個應用程式,並包含在復原映像中。某些管理員可能想要刪除環境中未使用的應用程式。必須確定相關的卸載命令才能執行此操作。本文檔概述了該過程,並提供了幾個常用安裝的應用程式的示例命令。
判斷相關解除安裝命令字串的步驟:
- 在安裝了目標應用程式的裝置上以系統管理員身分登入
- 開啟 Registry Editor (regedit.exe)
- 前往 HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall 金鑰
- 在註冊表子項中搜索要卸載的應用程式的名稱,並記下
DisplayName、 發行者或其他可用於 PowerShell 查詢的識別資料。 - 前往 HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall 金鑰
- 在註冊表子項中搜索要卸載的應用程式的名稱,並記下
DisplayName、 發行者或其他可用於 PowerShell 查詢的識別資料。注意:- 可能有幾個必須運行的關聯註冊表項和卸載命令,因此請流覽所有註冊表項以確保記下所有必需的卸載命令。
- 匯出兩個卸載註冊表項並使用文本編輯器搜索資訊可能更容易。
- 找到相關的登錄機碼後,請注意要解除安裝的應用程式具有的相同登錄檔值 (例如,要解除安裝的 VMware Horizon 用戶端登錄檔項目中都有
DisplayName欄位,而 Citrix 不會,使用 Publisher 欄位解除安裝 Citrix 會更輕鬆)。 - 請注意所使用的解除安裝字串命令。大部分程式都是使用 MsiExec.exe 命令解除安裝,但有些程式 (例如 Citrix) 可能具有其他或不同的命令,且必須在 PowerShell 指令檔中加以說明。
移除 Citrix Workspace:
若要從精簡型用戶端移除 Citrix Workspace 用戶端,請搜尋登錄機碼,以判斷鍵間的常用搜尋字串。下列螢幕擷取畫面顯示與 Citrix Workspace 用戶端相關聯的其中一個登錄機碼範例。

請注意以下範例指令檔中使用的 Publisher 項目,以搜尋相關金鑰。另外,請注意 UninstallString,在這種情況下,它不使用 MsiExec.exe 命令進行卸載,因此必須特別小心地處理此條目以及標準 MsiExec 命令。
以下指令檔範例從 Windows 10 精簡型用戶端移除 Citrix Workspace 及相關應用程式:
# 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 用戶端,請搜尋登錄機碼,以判斷鍵間的常用搜尋字串。下列螢幕擷取畫面顯示與 VMware Horizon 用戶端相關聯的其中一個登錄機碼範例。

請注意 DisplayName 在以下範例指令檔中用來搜尋相關金鑰的項目。另外,請注意 UninstallString 若要確保所有解除安裝命令均使用 MSiExec.exe 命令。
以下指令檔範例會從 Windows 10 精簡型用戶端移除 VMware Horizon 及相關應用程式:
# 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 刪除案例。必須執行測試,以判斷解除安裝是否已完成。
受影響的產品
Latitude Mobile Thin Client, OptiPlex Thin Client, Wyse Hardware, Wyse Management Suite文章屬性
文章編號: 000222586
文章類型: How To
上次修改時間: 23 8月 2024
版本: 2
向其他 Dell 使用者尋求您問題的答案
支援服務
檢查您的裝置是否在支援服務的涵蓋範圍內。