• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
Join the HP Community Solve‑a‑thon | Help Others & Share Your Solutions | Live on Zoom | 2:30 PM to 2:30 AM IST | Every Wednesday Click here to know more
Check out our WINDOWS 11 Support Center info about: OPTIMIZATION, KNOWN ISSUES, FAQs, VIDEOS AND MORE.
HP Recommended

Hello,

 

I need to uninstall all instances of HP Support Assistant from our HP laptops.

I'm using remediation script HPSupportAssist - Pastebin.com for the uninstallation.

On my test machine it works without any issues but for the rest of the devices in my organization it doesn't work.

 

I've tried to include more uninstallation methods but nothing works. On my test machine the uninstallHPSA.exe from C:\SWSetup\sp* works.

 

These are the versions our users have installed: 9.44.18.0 | 9.46.17.0 | 9.47.41.0 

 

Do you have any scripts that might work or other ways to handle the uninstallation?

 

Thanks!

1 REPLY 1
HP Recommended

@starch5675,

 

Welcome to our HP Community forum!

 

HP Support Assistant (HPSA) can be stubborn to remove because different versions install slightly differently, and enterprise environments complicate things further.

 

DISCLAIMER: Please apply the Script and (PowerShell) Commands you'll find in this post at your own risk and volition.  Even though every effort has been made to ensure that the information in this post is legit and correct, I cannot guarantee it.

 

Having stated this for the record, so to speak, here are a few approaches you can try:


1. Use the Official Uninstaller (if available):

 

On some builds, you’ll find:

 

C:\Program Files (x86)\Hewlett-Packard\HP Support Framework\UninstallHPSA.exe

 

Or:

 

C:\Program Files (x86)\HP\HP Support Framework\UninstallHPSA.exe

 

This is the cleanest way. It sounds like your test machine worked because the C:\SWSetup\sp* folder still had the original installer/uninstaller package, while others may not.


2. Uninstall via MSIExec (registry product codes):

 

Each version of HPSA registers an uninstall string in the registry:

 

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall


HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall

 

Look for product names like HP Support Assistant or HP Support Solutions Framework.


Then run, for example:

 

msiexec /x {PRODUCT-CODE-GUID} /qn

 

You may need to repeat this for both HPSA and the Support Solutions Framework.


3. PowerShell Script to Find & Uninstall All Versions:

 

Here’s a general-purpose script that hunts down and removes any installed HPSA components:

 

$apps = Get-WmiObject -Class Win32_Product | Where-Object {
$_.Name -like "HP Support Assistant*" -or $_.Name -like "HP Support Solutions Framework*"
}

foreach ($app in $apps) {
Write-Output "Uninstalling $($app.Name)..."
$app.Uninstall() | Out-Null
}

 

Please Note: Win32_Product can be slow and triggers a revalidation of all MSIs. A safer method is to query uninstall registry keys directly.


4. Registry-Based Detection & Removal:

 

Example PowerShell snippet:

 

$uninstallPaths = @(
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*",
"HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*"
)

foreach ($path in $uninstallPaths) {
Get-ItemProperty $path | Where-Object {
$_.DisplayName -like "HP Support Assistant*" -or
$_.DisplayName -like "HP Support Solutions Framework*"
} | ForEach-Object {
Write-Output "Uninstalling $($_.DisplayName)..."
Start-Process "msiexec.exe" -ArgumentList "/x $($_.PSChildName) /qn" -Wait
}
}

 

5. Enterprise/Remediation Deployment Tips:

 

  • Some versions require removal of HP Support Solutions Framework first before HPSA will uninstall cleanly.

  • Make sure you run the script with elevated permissions on all machines.

  • If you’re pushing this through Intune/SCCM, test with both System context and User context runs.


Summary:

 

  • Use UninstallHPSA.exe if present.

  • Otherwise, MSI uninstall via product code (PowerShell/registry method is best for multiple versions).

  • Remove (Uninstall) HP Support Solutions Framework as well.

  • If all else fails, please contact HP Slovakia Support: HP® Service Center Locator - Slovakia | HP® Support.

 

Kind Regards,

 

NonSequitur777


† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.