--- title: "Uninstalling the WXP Insights Windows Agent with SCCM or Microsoft Intune" slug: "uninstalling-the-wxp-insights-windows-agent-with-sccm-or-microsoft-intune" description: "Uninstall the HP Insights for Windows Application using SCCM v.1902 or Intune with our step-by-step guide and PowerShell script instructions." tags: ["SCCM Uninstallation", "HP Insights", "Onboarding"] updated: 2026-08-19T23:07:34Z published: 2026-08-19T23:07:34Z canonical: "learn.workforceexperience.hp.com/uninstalling-the-wxp-insights-windows-agent-with-sccm-or-microsoft-intune" --- > ## Documentation Index > Fetch the complete documentation index at: https://learn.workforceexperience.hp.com/llms.txt > Use this file to discover all available pages before exploring further. # Uninstalling the WXP Insights Windows Agent with SCCM or Microsoft Intune ## Introduction If the WXP Insights agent for Windows is installed using Microsoft System Center Configuration Manager (SCCM), these instructions are based on version 2203. Steps may vary slightly for other SCCM versions. This guide outlines the steps to uninstall the WXP Insights agent for Windows from devices, focusing on Microsoft SCCM v.2203 or Intune environments. ### Prerequisites 1. Download the Uninstallation PowerShell script from [here](https://ftp.hp.com/pub/caps-softpaq/HP_DaaS/DaaS%20Client%20Scripts/GPO/Install/WXP-Insights-Installation-Scripts.zip). 2. Extract the uninstall script and keep it as **Local-Folder-Path1**. 3. Ensure deployment is removed (Target Installation) for an existing application for the WXP Insights agent for Windows created in Intune or SCCM. 4. We are creating new application in Intune or SCCM to detect the presence WXP Insights agent and automatically uninstall it. Consider this as new deployment (Installation Activity). ## Intune Preparation Steps: 1. To convert the uninstallation script into **Intunewin** format, download the Win32 Content Prep Tool from: `https://github.com/Microsoft/Microsoft-Win32-Content-Prep-Tool` 2. Save the **IntuneWinAppUtil.exe** to a [**Download-Folder-Path**]. 3. Open an Admin command prompt and go to **[Download-Folder-Path]** using **cd** command and run the following command to convert the uninstall script to **Intunewin** format. 4. Replace **[Local-Folder-Path1]** with the local folder where the uninstall script is extracted. `IntuneWinAppUtil.exe -c [Local-Folder-Path1] -s WXPInsights-Uninstall-Script.ps1 -o [Local-Output-Folder-Path]`. For example: `IntuneWinAppUtil.exe -c “C:\UninstallScript\” -s wxp-insights-uninstall-script.ps1 -o “C:\IntuneFiles\”` > **Note:** Ensure that the UninstallScript and IntuneFiles are folder created at C Drive and UninstallScript folder contains WXPInsights-Uninstall-Script.ps1 file before running above command. 5. After the files are successfully converted, the following **Intunewin** files will be present: `wxp-insights-uninstall-script.intunewin` ### Creating an Application in Intune To create a new Intune application package to uninstall WXP Insights agent for Windows: 1. Log into the [Azure portal](https://intune.microsoft.com/#home). The **Home** page is displayed. 2. Go to **Microsoft Intune Admin Center** and click **Apps >** **Platforms** > **Windows.** 3. Click **Create** and select **App type** as “Windows app (Win32)” and then click **Select**. 4. Click **Select app package file.** 5. Select the converted Intunewin file `wxp-insights-uninstall-script.intunewin` 6. Click **OK**. 7. In the **App information** page, enter the following detail and then click **Next**. 1. **Name**: Uninstallation for WXP Insights agent for Windows 2. **Publisher**: HP Inc. 3. **Version**: 1.X.X.X (replace with HPInsights-Uninstall-Script.ps1 version mentioned inside the script) 8. In the **Program** page, in Install command, enter `powershell.exe -ExecutionPolicy Bypass -File .\wxp-insights-uninstall-script.ps1` 9. Enter the Uninstall command as None. 10. Click **Review + save**. 11. In the **Requirements** tab: 1. In **Check operating system architecture:** 1. Select **Yes**. Specify the systems the app can be installed on 2. Select **Install on x64 system**. 3. Install on Arm64 system > **Note**: Select this option only if the target devices are on Arm platform. 2. Select **Minimum operating system** as per target environment. For example: Windows 10 1607 12. Click **Review + save**. 13. In the **Detection** rules tab, select **Rules format** as “Use a custom detection script.” 1. Save the contents below in `WXPInsights-Detection-Script.ps1` file on local device and select this as Script file ```plaintext $service = Get-Service -Name "hpLHAgent" -ErrorAction SilentlyContinue if ($null -eq $service) { exit 1 } exit 0 ``` 1. Click on **Review + save.** 2. In the **Review + save** tab, click **Save.** ### Deploying an Application in Intune: 1. In the **Assignments** section, click the edit option. 2. In the **Assignments** tabs, go the **Required** sections and select **Add group, Add all users,** or **Add all devices** based on the deployment strategy and target. 3. For **Silent Installation**, click **Show all toast notifications** within **End user notifications** section. 4. In the **End user notifications**, select **Hide all toast notifications** and click **OK**. 5. Click **Review + save.** 6. In the **Review + save** tab, click **Save**. ## SCCM ### Prerequisites > Ensure the uninstall script `WXPInsights-Uninstall-Script.ps1`is copied at UNC Path at SCCM Server system. ### Creating an Application in SCCM 1. Log in to the **SCCM Admin Console** and start the **Create Application** wizard. 2. In the SCCM Admin Console, click **Software Library**. 3. In the **Software Library** workspace, click **Application Management** > **Applications** > **Create Application**. 4. Select the option - **Manually specify the application information**. 5. Click **Next**. 6. Enter the following details and click **Next**: 1. **Name**: Uninstallation for WXP Insights agent for Windows 2. **Publisher**: HP Inc. 3. **Version**: 1.X.X.X (replace with wxp-insights-uninstall-script.ps1 version mentioned inside the script). 7. Click **Next** to accept the defaults for the **Application Catalog** entry. 8. Click **Next**. 9. Click **Add** to create a new **Deployment Type** and select **type** as “Script Installer.” 10. Manually specify the deployment type information, which is selected automatically. 11. Click **Next**. 12. For the **Deployment Type**, enter the name as “Removal of HP Insights application - silent install.” 13. Click **Next**. 14. In the **Content** **Location**, specify the Network path (UNC name) to the `wxp-insights-uninstall-script.ps1` file. For example: `\\WIN-Server-PC\Softwares\HP\Uninstall\` 15. In the **Installation Program**, specify the command as None 16. In the **Uninstallation program,** specify `powershell.exe -executionpolicy bypass -WindowStyle Hidden -noninteractive -nologo -file "wxp-insights-uninstall-script.ps1"` 17. Select the option **Run installation and uninstall program as 32-bit process on 64-bit clients**. 18. Click **Next.** 19. Select **Use a custom script to detect the presence of this deployment type**. 20. Click **Edit**. 21. For **Script type**, select the dropdown as “Powershell.” 22. Provide the following script contents: ```plaintext $service = Get-Service -Name "hpLHAgent" -ErrorAction SilentlyContinue if ($null -eq $service) { exit 1 } exit 0 ``` 23. Click **OK**; then click **Next**. 24. For **Installation behavior,** select “Install for system.” 25. For **Log on requirement**, select “Whether or not a user is logged.” 26. Click **Next** until the close button is displayed. Then, click **Close.** ### Deploying an Application in SCCM: 1. Log in to the SCCM Admin Console and click **Software Library**. 2. In the **Software Library** workspace, right click on **Uninstallation for WXP Insights Windows Application** and click **Deploy.** 3. On Collection, click **Browse**…: 4. Click **User Collections or Device Collections** as per deployment strategy and select the target devices and user for uninstallation. 5. Click **OK** and then **Next.** 6. Ensure **Distribution point** is shown in window. 7. Click **Next.** 8. In **Deployment Setting**, select **Action** as “Uninstall.” 9. Click **Next** and then **Next**. 10. In **User Experience** setting, select the dropdown for **Hide in Software Center and all notifications** as “User Notifications: setting”. 11. Click **Next** until **Close** button is displayed, then click **Close**. #### General Note for Uninstalling WXP Insights agent using Intune or SCCM > [!WARNING] > **Important**: If the customer or IT Administrator is enforcing strict PowerShell execution policies (such as AllSigned, RemoteSigned, or other restricted execution policies), the provided uninstall PowerShell script wxp-insights-uninstall-script.ps1 must be digitally signed before deployment. In such environments: > > - The IT Administrator must sign the provided PowerShell uninstall script with an approved code-signing certificate.The signed script must be used when configuring the application deployment in Intune or SCCM. > - The IT Administrator must ensure that the corresponding code-signing certificate (or its issuing CA certificate) is present in the Trusted Root Certification Authorities or Trusted Publishers store under the Local Computer certificate store on all target devices. > - Failure to meet these requirements may result in the uninstall script being blocked by the system execution policy. ## Preventing Automatic Reinstallation of HP Components After Uninstallation Uninstalling the WXP Insights agent for Windows by using SCCM, Microsoft Intune, or the uninstall script removes the `WXPInsightsAgent` and `WXPInsightsAnalytics` application packages that are currently installed on the device. However, uninstalling these packages does not prevent them from being installed again later. ### Reinstallation scenarios `WXPInsightsAgent` and `WXPInsightsAnalytics` can be reinstalled in the following scenarios. - **Smart Support enrollment**: When `AllowSupport` consent is enabled during out-of-box experience (OOBE) or through HP Privacy Settings, `HPServiceScan` can enroll the device in HP Smart Support. During Smart Support enrollment, `WXPInsightsAgent` and `WXPInsightsAnalytics` can be reinstalled as the required components of the Smart Support solution. For additional information, refer to [HP Smart Support | HP® India](https://www.hp.com/in-en/services/smart-support.html). - **Windows Update delivery**: When `AllowMarketing` and/or `AllowProductEnhancement` consent is enabled during OOBE or through HP Privacy Settings, `WXPInsightsAnalytics` can be offered again through Windows Update. In this case, `WXPInsightsAnalytics` is delivered as an HP Software Component driver package that is used for telemetry collection that supports product improvement, marketing, and support services. ### Preventing reinstallation To prevent these components from being reinstalled, IT administrators must block the corresponding HP Software Component driver packages through Windows Update management policies. For example, administrators can use driver exclusion policies, Windows Server Update Services (WSUS), Microsoft Intune, or SCCM controls. IT admins must also disable Smart Support enrollment mechanisms where applicable. ## Contact Us For any assistance, create a [support case](/wxp/docs/creating-a-support-case) or email [support@wxp.hp.com.](mailto: support@wxp.hp.com)