
# FileWave

Use FileWave to deploy Device Protection across your managed Windows fleet with the required permissions in place.

## Prerequisites

* All devices have the FileWave client installed and reporting to your FileWave server.
* Your **PowerShell install command**, copied from the **User group** selector on the [Noon dashboard](https://app.noon.security/devices). It includes your token and the installer download.

If you're missing the command, go back to the [Noon dashboard](https://app.noon.security/devices) and click **Connect Device**.

## Set up the deployment

{% stepper %}
{% step %}
### Create the install fileset

1. In FileWave Central, go to **Filesets** and click **New Desktop Fileset** → **Empty**.
2. Name the fileset "Device Protection".
3. Select the fileset and click **Scripts** in the toolbar.
4. In the **Activation** section, create a new script named `aikido-install.ps1`.
5. Paste the PowerShell install command copied from the Noon dashboard into the script and save it.

{% hint style="info" %}
FileWave runs fileset scripts as the local SYSTEM account, so the installer has the rights it needs to write to Program Files and register the service. There is no separate run-as setting.
{% endhint %}
{% endstep %}

{% step %}
### Add the lockdown script

AppLocker is the built-in Windows feature that controls which apps people are allowed to run. This script adds an AppLocker rule that stops people from launching the Device Protection uninstaller.

1. In the same **Scripts** dialog, create a second **Activation** script named `aikido-applocker.ps1`.
2. Paste the following script and save it:

    {% code title="aikido-applocker.ps1" %}
    ```powershell
    $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
    ```
    {% endcode %}
3. Confirm `aikido-applocker.ps1` is listed below `aikido-install.ps1`. Scripts in the same section run from top to bottom, so drag them into this order if needed.

{% hint style="info" %}
The Device Protection installer hardens the `EndpointProtection` service at the OS level, so people without admin rights can't stop or disable it. People who run as local administrators can bypass AppLocker rules, so combine the uninstall block with removal of local admin rights for stronger enforcement.
{% endhint %}
{% endstep %}

{% step %}
### Force a reboot after installation

1. Select the **Device Protection** fileset and click **Properties**.
2. Check **Force reboot** and save.

FileWave restarts the device 2 minutes after the scripts run. Device Protection fully activates on the next boot.

To restart devices manually instead, right-click them in FileWave Central and select **Restart Windows Devices**.
{% endstep %}

{% step %}
### Deploy to your devices

1. In FileWave Central, go to **Deployments** and create a new deployment named "Device Protection".
2. Click **+** beside **Clients** and select the target Windows devices or group.
3. Click **+** beside **Filesets** and add the **Device Protection** fileset.
4. Click **OK**, then click **Update Model** in the toolbar to send the deployment to devices.

Start with a single test device. Once it passes the checks below, add the rest of your fleet to the deployment and click **Update Model** again.
{% endstep %}
{% endstepper %}

## Check that it works

1. In FileWave Central, open the test device's **Client Info** → **Filesets Status** and confirm the fileset activated.
2. After the reboot, check that the device appears in the [Noon dashboard](https://app.noon.security/devices).

## 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 |
