Anyone have a script created to install, uninstall and update SuperOps RMM?
Powershell script looks like this:
Invoke-Command -ScriptBlock { param ($url) $fileName=Split-Path -Path “$url” -Leaf; [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; invoke-WebRequest -Uri “$url” -Outfile “$fileName”; Start-Process -Wait -FilePath msiexec -ArgumentList /i,$fileName,/qn,LicenseAccepted=YES; } -ArgumentList “”
For example, if the agent download URL is:
The install script would look like this:
Invoke-Command -ScriptBlock { param ($url) $fileName=Split-Path -Path “$url” -Leaf; [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; invoke-WebRequest -Uri “$url” -Outfile “$fileName”; Start-Process -Wait -FilePath msiexec -ArgumentList /i,$fileName,/qn,LicenseAccepted=YES; } -ArgumentList “https://superops-wininstaller-prod.s3.us-east-2.amazonaws.com/agent/00000/FZTO7UMH7RI8_1UYGMRUKPITQ8_windows_x64.msi”
Uninstall looks like:
Get-CimInstance -Class Win32_Product -Filter “IdentifyingNumber =‘{3BB93941-0FBF-4E6E-CFC2-01C0FA4F9301}’” | Invoke-CimMethod -MethodName Uninstall