NinjaOne Deployment (Windows)
Deploy AI Endpoint Shield to Windows endpoints from NinjaOne using the install.ps1 script on a recurring schedule.
Overview
Deploy AI Endpoint Shield to Windows endpoints from NinjaOne by storing Akto's install.ps1 in the NinjaOne Automation Library and running it as a scheduled script.
install.ps1 is the same script used for Intune Deployment and takes the same parameters. It downloads the versioned ZIP from Akto-hosted storage, installs or upgrades the agent, writes configuration, and registers the scheduled tasks. Because it compares the installed version against a manifest and skips the download when the device is already current, it is safe to run on a recurring daily schedule — the same policy handles both the initial install and every subsequent update.
Akto ships the installer in two forms:
Client-specific installer
AKTO_API_TOKEN and AKTO_API_BASE_URL are already embedded
Manifest URL only — nothing sensitive lives in NinjaOne
Universal installer
One build shared across all clients
Manifest URL plus token and base URL as parameters
Prerequisites
NinjaOne admin access with script and policy permissions
A Windows device policy in NinjaOne
install.ps1from Akto, plus yourMANIFEST_URLWith the universal installer: your
AKTO_API_TOKENandAKTO_API_BASE_URLA pilot device group for a staged rollout
Devices need HTTPS access to the manifest and ZIP hosts, to
https://<account_id>-guardrails.akto.io, and tohttps://ultron.akto.io
install.ps1 parameters
NinjaOne passes the Parameters field to the script as positional arguments, in order:
$1
MANIFEST_URL
Yes*
HTTPS URL to latest.json
$2
INSTALLER_URL
No
Direct ZIP URL, used if the manifest fetch fails
$3
AKTO_API_TOKEN
Cond.
Required with the universal installer; already embedded in a client-specific installer
$4
AKTO_API_BASE_URL
Cond.
Required with the universal installer; already embedded in a client-specific installer
* Required unless only INSTALLER_URL is used.
Deployment Steps
Create the automation script
In NinjaOne:
Go to Administration → Library → Automation
Click Add and choose Script
Configure:
Name:
Akto Endpoint Shield - Windows InstallLanguage: PowerShell
Operating System: Windows
Architecture: 64-bit (the installer must not run under 32-bit WOW64)
Run As: System
Paste the full contents of
install.ps1(provided by Akto) as the script bodySave
Keep Run As = System and Architecture = 64-bit. The script writes to C:\Program Files\, registers scheduled tasks, and provisions the SYSTEM profile config — all of which fail in a user or 32-bit context.
Attach to a policy and set parameters
Open the target Windows policy
Add a Scheduled Script and select
Akto Endpoint Shield - Windows InstallSet the Parameters field:
Client-specific installer — manifest URL only:
Universal installer — append the token and base URL, with an empty
""for the unused installer URL so the arguments don't shift:Save the policy
Schedule
Pilot: run once immediately against a small device group
Production: run daily
A daily schedule is what keeps devices updated — the script fetches latest.json, compares it to the installed version, and exits without downloading anything when the device is already current. When Akto publishes a new release, devices pick it up on the next run with no policy change.
Force a full redeploy: set FORCE_REINSTALL=true as an environment variable on the script assignment.
Validate on an endpoint
Run on a pilot device in an Administrator PowerShell session:
Expected:
A version string matching the manifest
check-configprintsprovisionedMCPEndpointShieldHTTP,MCPEndpointShieldAgent, andMCPEndpointShieldDetectorexist and areRunningorReadyThe device appears under Akto → Endpoint Shield with recent activity
Uninstall
Create a second automation script from Akto's uninstall_windows.ps1 (PowerShell, 64-bit, Run As: System), and run it on demand against the target devices. It takes no parameters.
Troubleshooting
Script fails immediately
Not running as System, or 32-bit PowerShell
Set Run As: System and Architecture: 64-bit on the automation
Wrong config / token (universal installer)
Arguments shifted in the Parameters field
Pass an explicit "" for argument 2; or use a client-specific installer, which needs no credentials passed
Download errors
Firewall or proxy blocking the manifest / ZIP host
Allow HTTPS to the manifest and ZIP URLs
Install succeeds but no processes
Tasks failed, or an EDR is terminating the binary
Check %ProgramData%\akto-endpoint-shield\logs\*-wrapper.log; see Allowlist in Security Software
Device never updates to a new release
Script scheduled once instead of daily
Change the scheduled script to run daily
For device-level diagnosis, see Windows Troubleshooting.
Related Documentation
Support
In-app Intercom in the Akto dashboard
Last updated