
I hope you will find this script useful to uninstall the VMware EUC agents and never look back to remove individual programs under “Programs and Features”.During the Horizon Client installation process, you are prompted to confirm the installation of optional components. Thanks to Hilko and Joel for reviewing the script and providing valuable feedback. GitHub – scripts/vmwareeucagent-uninstall at master

Write-Host "Restarting the computer post the VMware EUC Agents Un-install" -ForegroundColor Green Get-Package -Name 'VMware Tools' | Uninstall-Package

Write-Host "Un-installing the VMware Tools Agent" -ForegroundColor Green Get-Package -Name 'VMware Horizon Ag**' | Uninstall-Package Write-Host "Un-installing the VMware Horizon Agent" -ForegroundColor Green Get-Package -Name 'VMware Dynamic **' | Uninstall-Package Write-Host "Un-installing the Dynamic Environment Agent" -ForegroundColor Green #Un-installing VMware Dynamic Environment Agent #Get-Package -Name 'VMware Horizon Cli**' | Uninstall-Package

#Write-Host "Un-installing the VMware Horizon Client" -ForegroundColor Green Get-Package -Name 'App Volumes **' | Uninstall-Package Write-Host "Un-installing the App Volumes Agent" -ForegroundColor Green # Author - Aresh Sarkari (Twitter - VMware App Volumes Agent # Comment or Un-comment the Agent that does not apply to your environment # Suppressed auto Reboot the OS towards the end after un-installing all Agents. # App Volumes Agent, Horizon Client(Optional), DEM, Horizon and VMware Tools # Un-Install EUC Agents in the proper order for Golden Image (Reboot is required to complete the uninstallation operations.) #

The PowerShell module Uninstall-Package suppresses individual reboot and we perform the final reboot towards the end using the Restart-Computer module. Note – All the above testing is carried out on Windows 10 1909/Windows Server 2016 with PowerShell 5.1.
