Deployment with PDQ
This guide gives the steps that are necessary to deploy the SenseOn Universal Sensor with PDQ.
Recommended: Deploy via the SenseOn Install Command
PDQ Deploy can run the SenseOn install command directly as a PowerShell step. This step always installs the latest published version of the Universal Sensor. It is not necessary to put files on the PDQ server before the deployment.
Step 1: Copy your install command
- Log in to SenseOn.
- Go to Settings > Universal Sensor.
- Copy the Windows install command.
Optional: Verify the install script checksum
If your security policy makes checksum verification mandatory before you run remote scripts, do this procedure. Do a check of the script on your admin workstation before you create the package:
# Step 1: Download the script Invoke-WebRequest -UseBasicParsing -Uri "https://<your-tenant>.senseon.io/install.ps1" -OutFile install.ps1 # Step 2: Verify the checksum (compare against the value shown in Settings > Universal Sensor) Get-FileHash install.ps1 -Algorithm SHA256If the hash matches, the script is genuine. In Step 2, replace the
Invoke-WebRequest ... | Invoke-Expressionline with the contents of the verifiedinstall.ps1. Keep the$env:SENSEON_INSTALLER_KEYline.
Step 2: Create the PDQ package
- In PDQ Deploy, create a new package.
- Give the package the name SenseOn.
- Add a PowerShell step. Do not use a File Copy + Install combination.
- Set the content of the PowerShell step to:
$ErrorActionPreference = "Stop"
$env:SENSEON_INSTALLER_KEY = "<your-installer-key>"
Invoke-WebRequest -UseBasicParsing -Uri "https://<your-tenant>.senseon.io/install.ps1" | Invoke-Expression
- Set the step to run as Local System. This setting gives the installation the privileges that are necessary.
Detecting an existing installation: If a test is necessary to find if a device already has SenseOn, look for the
senseon-bootstrapperWindows service. UseGet-Service -Name senseon-bootstrapperor the registry keyHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\senseon-bootstrapper. The install command installs the bootstrapper. The bootstrapper then downloads and installs the Universal Sensor. Thus, if you look for the bootstrapper, PDQ is responsible only for the software that it deploys. A device with the legacy agent (version 6 and earlier) has no bootstrapper, so this test does not find it. To find a device with either generation, also look for thesenseon-seedservice of the sensor.
Step 3: Deploy
Right-click the package. Select Deploy Once. Then select your target systems (usually an Active Directory group or OU). The target hosts appear in Assets > Devices one or two minutes after the script completes.
Removing SenseOn
Remove the agent as Uninstalling SenseOn tells you. On Windows, when you uninstall the bootstrapper MSI, the services of the Universal Sensor stop immediately. But the uninstall operation only schedules the removal of the sensor package for the next time an administrator logs on. Thus a device that no one logs on to keeps the sensor package until then.
To remove the two packages in one run, deploy the uninstall script as an alternative. The script removes the sensor and clears the scheduled removal. If you remove only the sensor, the bootstrapper stays. The bootstrapper then installs the sensor again in approximately ten minutes.