Introduction
This article provides step-by-step instructions for IT administrators to create a Group Policy Object (GPO) that automates the uninstallation of the HP Insights for Windows Application across domain-joined devices. This method is particularly useful for organizations managing large device fleets, enabling centralized removal and device unenrollment during offboarding, reimaging, or software transitions.
The article provides step-by-step guidance to link the GPO in Active Directory and apply the uninstallation PowerShell script via startup policies to ensure seamless removal during the next system reboot.
Creating a Group Policy Object
To create a Group Policy Object to uninstall the HP Insights for Windows agent:
Download the Uninstallation PowerShell script from: https://ftp.hp.com/pub/caps-softpaq/HP_DaaS/HP_TechPulse_Deployment/MSI_Installer/UninstallHPTechPulse.zip.
Extract the uninstall script.
To open the Group Policy Management console, type gpmc.msc at the command prompt on the Active Directory (AD) Domain Controller.
Select Create a GPO in this domain and Link it here….
Name the Group Policy Object “Uninstall HP Insights for Windows Application”.
Select Computer Configuration > Windows Settings > Scripts (Startup/Shutdown) > Startup.
In the Startup Properties dialog box, select the PowerShell Scripts tab.
Select Show Files.
Copy the script file into the folder.
In the Startup Properties dialog box, select Add, browse and select the UninstallHPTechPulse.ps1 file.
To exit the dialog box and apply the settings, click OK. The client computer receives the Group Policy update during the next refresh interval. When the client computer restarts or starts up, the “Uninstall HP Insights for Windows Application” Group Policy object is applied, and the device is automatically unenrolled from HP Insights for Windows services.
Note: To successfully unenroll devices, they must be connected to the Internet.