Introduction
If the HP Insights for Windows Application was installed using Microsoft System Center Configuration Manager (SCCM), these instructions are based on version 1902. If you're using a different version of SCCM, some steps may vary slightly.
This guide outlines the steps to uninstall the HP Insights Windows Application from devices, focusing on Microsoft SCCM v.1902 or Intune environments.
Prerequisites
Download the Uninstallation PowerShell script from here.
Extract the uninstall script and be sure the script file is saved to a location accessible by Intune and SCCM.
Ensure an existing application deployment for the HP Insights for Windows Application has been created in Intune or SCCM.
Note: To successfully unenroll, the devices must be connected to the Internet.
Loading the Uninstall Script
Select the Application created earlier for deploying the HP Insights for Windows Application and click the Deployment Type tab.
Right-click the Deployment Type created earlier and select Properties.
Select the Programs tab.
In the Uninstall Program, specify the following command:
powershell.exe -executionpolicy bypass -windowstyle hidden -noninteractive -nologo -file "UninstallHPInsights.ps1"
Select OK to apply the changes to the Deployment Type.
Right-click the Application and select Properties.
Select the Content Locations tab.
Select the Distribution point and click the Redistribute button.
Right-click the Deployment Type and select Update Content.
When prompted whether to refresh the content for the deployment type, select Yes.
Note: The script exits with code 1618 if another MSI installer is running during the uninstallation process. Retry again after the application closes.
Creating a Deployment with Action Set to Uninstall
If there is already an existing deployment with the Action set to Install, delete the deployment before creating a deployment targeting the same Collection.
With the Application selected, click on the Deploy button.
Click Browse, select the Collection to target, and then click Next.
Ensure the distribution points to distribute the content to are in the list, and then click Next.
Set the Action to Uninstall, and then click Next.
Select the desired Uninstall Deadline, and then click Next.
Select Hide in Software Center and all notifications for User notifications.
Set the desired Threshold for failed removals, and then click Next.
Review the deployment settings, and then click Next.
When the completion screen is displayed, click Close.
The uninstall script will be distributed to devices in the target collection and the HP Insights for Windows Application will be uninstalled and unenrolled after running the script.