Deployment with baramundi
This guide tells you how to deploy the SenseOn Universal Sensor to Windows devices with baramundi Management Suite (bMS).
The recommended procedure is to put the SenseOn install command in a PowerShell step in a baramundi software package. Each time the package runs, it installs the latest published version of the Universal Sensor. Thus it is not necessary to keep an MSI on a depot. It is also not necessary to replace an MSI when SenseOn releases a new sensor version.
Step 1: Copy your install command
- Log in to SenseOn.
- Go to Settings > Universal Sensor.
- Copy the Windows install command. The command has this structure:
$env:SENSEON_INSTALLER_KEY="<your-installer-key>"; iwr -useb https://<your-tenant>.senseon.io/install.ps1 | iex
Step 2: Create the install script
Save the command as SenseOn-Install.ps1 on the machine where you run the baramundi Deployment Studio (bDS):
$ErrorActionPreference = "Stop"
$env:SENSEON_INSTALLER_KEY = "<your-installer-key>"
Invoke-WebRequest -UseBasicParsing -Uri "https://<your-tenant>.senseon.io/install.ps1" | Invoke-Expression
Replace the tenant hostname and the installer key with your values from Step 1.
Step 3: Create the baramundi Software Package
- Open the baramundi Deployment Studio (bDS).
- Create a new package.
- Give the package the name
SenseOn Universal Sensor. - Add a PowerShell action. As an alternative, add a Run command action that starts
powershell.exe. -
Configure the action to run this command:
powershell.exe -ExecutionPolicy Bypass -File SenseOn-Install.ps1 -
Add
SenseOn-Install.ps1to the source files of the package. Then baramundi sends the file to the endpoint together with the action. - Set the action to run as Local System. This setting gives the installation the privileges that are necessary.
- Save the package.
- Publish the package to your baramundi depot.
Detection rule: Configure the "Installed" detection rule of the package to look for the registry key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\senseon-bootstrapper. This key exists when the SenseOn bootstrapper service is installed. Then baramundi can find that an endpoint already has SenseOn, and it does not run the installation again. A second installation on a host that already has the agent can stop with an error. It is possible that it does not complete as a no-op.This package installs the bootstrapper. The bootstrapper then downloads and installs the Universal Sensor. If the rule detects the bootstrapper and not a sensor file, baramundi is responsible only for what it deploys. It is possible that the bootstrapper installs but the sensor does not appear. The usual cause is a local antivirus, DNS, or TLS interception problem. A second installation cannot correct this problem. In those cases, the device does not check in to SenseOn (refer to Step 5).
Step 4: Create the baramundi Job
- In the baramundi Management Center, open Jobs.
- Create a new job.
- Give the job a name, for example
Install SenseOn Universal Sensor. - Add the
SenseOn Universal Sensorpackage as a job step with the Install action. - Under Targets, add the devices or the device groups to which you want to deploy. A target is usually an OU, a baramundi group, or a dynamic group that uses attributes.
- Set the Schedule to run at the next check-in, or to the schedule that is applicable to your environment.
- Save the job.
- Enable the job.
Step 5: Verify
baramundi runs the job on each endpoint in the scope at the next check-in of that endpoint. After the job completes successfully:
- Log in to SenseOn.
- Go to Assets > Devices.
- Make sure that the host appears with the expected hostname and a recent Last Seen timestamp.
The job log in the baramundi Management Center shows the status of the deployment for each device. The log includes the exit code of the PowerShell action.
If a host does not appear in SenseOn, refer to Troubleshooting for diagnostics.
Need help: If the installation was not successful, make sure that TLS interception does not occur. If TLS interception occurs, you must add
*.snson.netto the allowlist. Then contact our support team for more help.