Forum Discussion

Sk-73's avatar
Sk-73
Iron Contributor
Apr 12, 2022
Solved

Uninstall Google Chrome

Dear all, Can I check here, how can we uninstall/remove the Chrome browser by Intune? What I've tried: Previously, I created a Google Chrome App configuration profile, to push to all the devices. ...
  • Rudy_Ooms_MVP's avatar
    Apr 12, 2022
    Hi, normally the option you have chosen, should work. Thats also the first one I would try. Another possibility would be a powershell script or maybe even better convert this one to a proactive remediation script!

    $SEARCH = 'chrome$'
    $INSTALLED = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, UninstallString
    $INSTALLED += Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, UninstallString
    $RESULT = $INSTALLED | ?{ $_.DisplayName -ne $null } | Where-Object {$_.DisplayName -match $SEARCH }
    if ($RESULT.uninstallstring -like "msiexec*") {
    $ARGS=(($RESULT.UninstallString -split ' ')[1] -replace '/I','/X ') + ' /q'
    Start-Process msiexec.exe -ArgumentList $ARGS -Wait
    } else {
    $UNINSTALL_COMMAND=(($RESULT.UninstallString -split '\"')[1])
    $UNINSTALL_ARGS=(($RESULT.UninstallString -split '\"')[2]) + ' --force-uninstall'
    Start-Process $UNINSTALL_COMMAND -ArgumentList $UNINSTALL_ARGS -Wait
    }

Resources