AutomoxAutomox

uninstall DELL Support Assist

laurencechildsns
March 14, 2024 at 4:02 pm UTC

Hi All

we’ve noticed DELL Support Assist started running an agent task that is hogging major amounts of system RAM
we have a dispersed user population so I'd like to look at uninstalling the DELL Support Assist application from our remote users via Automox, has anyone managed to uninstall DELL SA remotely?

cheers :)

This discussion is archived and closed to replies. Continue it in the Automox Community Slack.

Discuss on Slack

Replies (1)

maalvarezMarch 15, 2024
#1

Hi, I just tested this in our environment. 

for evaluation I just did a simple exit 1 since I manually ran this but i suppose you can get creative and look for the program

Eval:

powershell7 lines
$program = Get-WmiObject -Class Win32_Product | Where-Object {$_.Name -eq "Dell SupportAssist"}

if($program){
exit 1
}else {
exit 0
}

Remediation: 

powershell25 lines
$program = Get-WmiObject -Class Win32_Product | Where-Object {$_.Name -eq "Dell SupportAssist"}
try {

    if ($program) {
        $ID = $program.IdentifyingNumber
        $Name = $program.Name
        Write-Host "Uninstalling $Name ..."

        $uninstallResult = (Start-Process "C:\WINDOWS\system32\msiexec.exe" -ArgumentList "/x $ID /quiet /norestart" -PassThru -Wait).ExitCode

        if ($uninstallResult -eq 0) {
            Write-Host "$Name has been uninstalled."
            exit 0
        } else {
            Write-Host "Failed to uninstall $Name."
            exit 1
        }
    } else {
        Write-Host "No programs found to uninstall."
        exit 0
    }
} catch {
    Write-Host "An error occurred: $_"
    exit 1
}