did you read the post? It has uninstall details too...Again....."uninstall"
Did you try the uninstall listed within this one too? Step 7.The problem is "uninstalling" Firefox. It is not as simple as just run the uninstall via sccm. Does not work. Mozilla did not create typical MSI package. Does not abide by Microsoft rules. Need a powershell script to uninstall or remove ALL versions from one or several possible locations to be deployed with SCCM
Does not work.Did you try the uninstall listed within this one too? Step 7.
Exactly what doesn't work? Exactly how did you deploy it? Exactly what do the logs say is happening?Does not work.
@araimondi,I was wondering if anyone knew of a good script to uninstall Firefox on all machines using sccm even if it wasn't installed by sccm and all versions of Firefox
# Define the list of computers in the domain
$computers = Get-ADComputer -Filter * | Select-Object -ExpandProperty Name
# Loop through each computer and uninstall Mozilla Firefox
foreach ($computer in $computers) {
Write-Host "Uninstalling Mozilla Firefox from $computer" -ForegroundColor Yellow
# Execute uninstallation command remotely
Invoke-Command -ComputerName $computer -ScriptBlock {
# Check if Mozilla Firefox is installed
$firefox = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object { $_.DisplayName -eq "Mozilla Firefox" }
if ($firefox) {
# Uninstall Mozilla Firefox
Start-Process "C:\Program Files\Mozilla Firefox\uninstall\helper.exe" -ArgumentList "/S"
Write-Host "Mozilla Firefox has been uninstalled." -ForegroundColor Green
} else {
Write-Host "Mozilla Firefox is not installed on this computer." -ForegroundColor Yellow
}
}
}
@Zaza4Star,I am also looking for assistance to uninstall Google Chrome on about 400 workstations. Google Chrome was not installed by SCCM.
# Define the list of computers in the domain
$computers = Get-ADComputer -Filter *
# Define the command to uninstall Chrome
$uninstallCommand = {
$chromeDisplayName = "Google Chrome"
$uninstallString = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*" | Where-Object {$_.DisplayName -eq $chromeDisplayName}).UninstallString
if ($uninstallString) {
Start-Process -FilePath $uninstallString -ArgumentList "/S" -Wait
Write-Host "Google Chrome has been uninstalled successfully on $($env:COMPUTERNAME)" -ForegroundColor Green
} else {
Write-Host "Google Chrome is not installed on $($env:COMPUTERNAME)" -ForegroundColor Yellow
}
}
# Execute the uninstall command on each computer
foreach ($computer in $computers) {
$session = New-PSSession -ComputerName $computer.Name
Invoke-Command -Session $session -ScriptBlock $uninstallCommand
Remove-PSSession -Session $session
}