0 0

Uninstall MSI using GUID

Uninstall all Adobe:

$programName = "*Adobe*"
$installedProducts = Get-WmiObject Win32_Product
$filteredProducts = $installedProducts | Where-Object { $_.Name -like $programName }
if ($filteredProducts.Count -eq 0) {
    Write-Host "No products found matching the name $programName."
} else {
    foreach ($product in $filteredProducts) {
        $identifyingNumber = $product.IdentifyingNumber
        Write-Host "Uninstalling $($product.Name) with IdentifyingNumber $identifyingNumber"
        Start-Process "msiexec.exe" -ArgumentList "/qn /norestart /X $identifyingNumber" -Wait
    }
    Write-Host "All products matching the name $programName have been uninstalled."
}

Get all:
get-wmiobject Win32_Product | Format-Table IdentifyingNumber, Name, LocalPackage -AutoSize

Get ZorgMail:
Get-WmiObject Win32_Product | Where-Object { $_.Name -like "*ZorgMail*" } | Format-Table IdentifyingNumber, Name, LocalPackage -AutoSize

Uninstall:
MsiExec.exe /qn /norestart /X {89F4137D-6C26-4A84-BDB8-2E5A4BB71E00}