Primo
Deploy Device Protection with Primo on Windows.
Use Primo to deploy Device Protection across your managed Windows fleet with the required permissions in place.
All devices must be enrolled in Primo Windows management before you begin.
#Set up the deployment
#Check you have the files
Before starting, make sure you have the following from the Noon dashboard:
- Your PowerShell install command (copied from the User group selector on the dashboard, includes token + installer download)
If you're missing it, go back to the Noon dashboard and click Connect Device.
#Run the install command on managed devices
Primo runs PowerShell scripts on Windows hosts through the Controls library. Upload the dashboard command as a
.ps1script, then run it against your target devices.- In the Primo admin console, go to MDM → Controls → Scripts.
- Copy the PowerShell install command from the Noon dashboard. Save it as a
.ps1file (for example,aikido-install.ps1), then click Add script, upload the file, and give it a name (for example, "Device Protection install"). - Assign the script to the team or device group that should receive Device Protection.
- Go to Hosts, filter to your target Windows devices, select them, open the Actions menu, and choose Run script. Select the Device Protection install script.
- Wait for the run to finish. Open the script run results and confirm every targeted device reports success before continuing.
#Apply the lockdown policy
People must not be able to stop the Device Protection service or uninstall the Device Protection app.
#Block uninstall with AppLocker
Run a PowerShell script that downloads and applies the AppLocker policy.
- In the Primo admin console, go to MDM → Controls → Scripts.
- Click Add script, name it (for example, "Device Protection uninstall block"), and paste the following:
$tmp = "$env:TEMP\aikido-applocker.xml" Invoke-WebRequest -Uri "https://raw.githubusercontent.com/AikidoSec/safechain-internals/refs/heads/main/docs/aikido-applocker-deny-mdm.xml" -OutFile $tmp Set-AppLockerPolicy -XmlPolicy $tmp -Merge Remove-Item $tmp -Force- Apply it to your target Windows device group.
#Reboot devices after installation
Add a reboot step to the install script: open the Device Protection install script in MDM → Controls → Scripts (or add a follow-up script) and append
Restart-Computer -Forceso the device reboots at the end of the run.Device Protection fully activates on the next boot.
#Troubleshooting
On the device, Device Protection appears as Aikido Endpoint Protection.
| Problem | Fix |
|---|---|
| Device doesn't appear in the dashboard after the script runs | Reboot the device; Device Protection fully registers on the next boot |
| Script exits with an error in the MDM console | Run the script manually as SYSTEM on a test host to see the full error; confirm the device has internet access to download the installer |
| The Device Protection service is not running | Reboot the device; if the service is still absent, re-run the install script |
| Script is blocked by execution policy | Scripts run via MDM execute as SYSTEM and bypass user-level execution policy restrictions; confirm the MDM is not applying an additional policy that restricts script execution |
| Device shows as inactive after installation | Device Protection needs a reboot to fully activate; check back after rebooting |