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.
Manish Balaji avatar
Written by Manish Balaji
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; 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; 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 /

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.

2_asset_management_page.png
Did this answer your question?