Skip to main content

Install Banyan App

Summary

Automates installation of the Banyan App on end-user devices (Windows, macOS, Linux).

Notes:

  • INVITE_CODE and DEPLOYMENT_KEY are required for installation.
  • Codes may come from client-level EDFs or be supplied at runtime. Runtime parameters override EDF values.
  • The script can run standalone or as a deployment script from the Install Banyan App internal monitor.
  • In the Banyan Command Center, go to Settings > App Deployment and record your organization’s Invite Code and Deployment Key.

References:

Sample run

First run: execute the script with Set_Environment=1 to create the EDFs required by the solution.

First run

Regular run: run the script with no parameters if the EDFs already contain the required codes.

Regular run

Alternate run: supply INVITE_CODE and DEPLOYMENT_KEY at runtime if they are not stored in EDFs.

Runtime parameters

Dependencies

Variables

NameOSValue
ProjectNameWindowsbanyan-windows
WorkingDirectoryWindowsC:\ProgramData\_Automation\Script\banyan-windows
ScriptPathWindowsC:\ProgramData\_Automation\Script\banyan-windows.ps1
DownloadUrlWindowshttps://raw.githubusercontent.com/banyansecurity/app-installer/refs/heads/main/banyan-windows.ps1
ProjectNamemacOSbanyan-macos
WorkingDirectorymacOS/tmp/
ScriptPathmacOS/tmp/banyan-macos.sh
DownloadUrlmacOShttps://raw.githubusercontent.com/banyansecurity/app-installer/refs/heads/main/banyan-macos.sh
ProjectNameLinuxbanyan-linux
WorkingDirectoryLinux/tmp/
ScriptPathLinux/tmp/banyan-linux.sh
DownloadUrlLinuxhttps://raw.githubusercontent.com/banyansecurity/app-installer/refs/heads/main/banyan-linux.sh

User parameters

NameExampleRequiredDescription
INVITE_CODEscayubRequired if not present in EDFInvite Code from the Banyan admin console
DEPLOYMENT_KEYWW91cl9EZXBsb3ltZW50X0NvZGVfT2J0YWluZWRfRnJ=Required if not present in EDFDeployment Key from the Banyan admin console
Set_Environment1Required for first runSet to 1 on first run to create the EDFs used by the solution

EDF (Client-level values)

NameExampleLevelSectionTypeOptionsRequiredDescription
Install Banyan AppWindowsClientBanyan AppDropdownNone, All, Windows, Windows Workstation, Windows Workstations and Mac, Windows Server, Mac, Windows and MacTrue (to enable automation)Choose OS targets for auto-deployment
Exclude Banyan App DeploymentLocationExclusionsCheckboxFalseExclude this location from auto-deployment
Exclude Banyan App DeploymentComputerExclusionsCheckboxFalseExclude this computer from auto-deployment
Banyan App INVITE_CODEscayubClientBanyan AppTextboxTrue (for automation)Invite Code from admin console
Banyan App DEPLOYMENT_KEYWW91cl9EZXBsb3ltZW50X0NvZGVfT2J0YWluZWRfRnJ=ClientBanyan AppTextboxTrue (for automation)Deployment Key from admin console

Output

  • Script log
  • Installed Banyan App (new software)