Untitled
unknown
plain_text
2 months ago
633 B
6
Indexable
$apps = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*, ` HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object { $_.DisplayName -like "*zluri*" } foreach ($app in $apps) { if ($app.DisplayVersion -ne "3.3.0.0" -and $app.UninstallString) { $uninstallCmd = $app.UninstallString -replace "/I", "/X" # Change /I to /X for uninstall Write-Host "Uninstalling $($app.DisplayName) version $($app.DisplayVersion)..." Start-Process -FilePath "cmd.exe" -ArgumentList "/c $uninstallCmd /quiet /norestart" -Wait } }
Editor is loading...
Leave a Comment