#PowerShell Script to Uninstall GFI Max Advanced Monitoring Agent #For x64 and x86 $ErrorActionPreference = "Stop" Try { & "C:\Program Files (x86)\Advanced Monitoring Agent\unins000.exe" /silent #(or) "C:\Program Files\Advanced Monitoring Agent\unins000.exe" /silent Write-Host "GFI Max Advanced Monitoring Agent uninstalled successfully" Write-Host "Successfully passed" Exit 0 } Catch { Write-Host "Failure" Exit 1001 } Here is the VB Script:
SetWshShell=WScript.CreateObject("WScript.Shell") WshShell.Run"""C:\Program Files\Advanced Monitoring Agent\unins000.exe"" /SILENT" WScript.Quit