All Collections
Remote Monitoring & Management
Deploying Agents
How to install the SuperOps.ai agent silently using scripts
How to install the SuperOps.ai agent silently using scripts

Learn how you can install the SuperOps.ai agent silently in the client's endpoints automatically using scripts.

Mithra Ravikrishnan avatar
Written by Mithra Ravikrishnan
Updated over a week ago

If you are looking to mass-deploy the SuperOps.ai agent on all your managed assets, we've got you covered. Use the scripts below to get the job done.

For Windows

1) On Command Prompt (as administrator)

The syntax would look like this:

set msi_installerURL=<URL of the MSI from the site Site> & cmd /v /c for %f in (!msi_installerURL!) do set msi_installer=%~nxf ^& cmd /v /c curl -o !msi_installer! !msi_installerURL! ^& cmd /v /c msiexec /i !msi_installer! /qn LicenseAccepted=YES

For example, if the agent download URL is:

Then the script to install is:

set msi_installerURL=https://superops-wininstaller-prod.s3.us-east-2.amazonaws.com/agent/00000/FZTO7UMH7RI8_1UYGMRUKPITQ8_windows_x64.msi & cmd /v /c for %f in (!msi_installerURL!) do set msi_installer=%~nxf ^& cmd /v /c curl -o !msi_installer! !msi_installerURL! ^& cmd /v /c msiexec /i !msi_installer! /qn LicenseAccepted=YES

2) On PowerShell

The syntax 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 "<MSI Download URL from site>"

For example, if the agent download URL is:

Then the script to install is:

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"

For Mac

The syntax would look something like this:

export URL="<PKG Download URL for Site>" && export baseName="$(basename $URL)" && export downLoadFile="/Users/Shared/$baseName" && curl --url "$URL" --output "$downLoadFile" && cd /Users/Shared && sudo -S installer -dumplog -pkg "$baseName" -target /

Then the script to install would look like:

export URL="https://superops-wininstaller-prod.s3.us-east-2.amazonaws.com/agent/00000/FZTO7UMH7RI8_1UYGMRUKPITQ8_Macos_amd64.pkg" && export baseName="$(basename $URL)" && export downLoadFile="/Users/Shared/$baseName" && curl --url "$URL" --output "$downLoadFile" && cd /Users/Shared && sudo -S installer -dumplog -pkg "$baseName" -target /

For Linux

The syntax would look something like this:

export URL="<Download URL>" && export baseName="$(basename $URL)" && wget --secure-protocol=TLSv1_2 $URL -O "/tmp/$baseName" && sudo chmod a+x /tmp/$baseName && sudo /tmp/$baseName --quiet yes --AcceptLicense yes --verbose yes 2>&1 | sudo tee /tmp/superopsInstallation.log


Then the script to install would look like:

export URL="https://superops-wininstaller-prod.s3.us-east-2.amazonaws.com/agent/00000/FZTO7UMH7RI8_1UYGMRUKPITQ8_linux_amd64" && export baseName="$(basename $URL)" && wget --secure-protocol=TLSv1_2 $URL -O "/tmp/$baseName" && sudo chmod a+x /tmp/$baseName && sudo /tmp/$baseName --quiet yes --AcceptLicense yes --verbose yes 2>&1 | sudo tee /tmp/superopsInstallation.log



The script should run as a root user.

📝 Note: The MSI/PKG URL varies based on the client and the site to which the asset should belong. Make sure to copy the right one from the assets page.


📝 Note: Here are the OS versions that the agent supports:

  • Windows: Windows 8.1 and newer, Windows 2012 R2 and newer

  • .Net: 4.7.2 and newer

  • macOS: 10.15 and above


Did this answer your question?