Skip to main content

Overview

Run the Unbound installer on a schedule with Intune Remediations.
Remediations requires Windows Enterprise E3 or E5, included in Microsoft 365 E3, E5 and F3. Without it, use the scheduled task below.
Deploy Python 3 as a Win32 app with InstallAllUsers=1 PrependPath=1 Include_launcher=1. A per-user install will not be found.
Allow HTTPS to getunbound.ai, backend.getunbound.ai, api.getunbound.ai, raw.githubusercontent.com and github.com.

1. Get your API key

Open Configure and copy the key from the API Access panel.

2. Create the detection script

Save this as Detect_Unbound.ps1:

3. Create the remediation script

Save this as Remediate_Unbound.ps1, replacing YOUR_ADMIN_API_KEY with your key:
The folder sits under C:\Program Files, which standard users cannot write to, and is locked to SYSTEM and administrators. Nothing can be planted there ahead of the script. -Backfill imports past GitHub Copilot, Claude Code and Codex sessions. Re-running never duplicates a session.

4. Create the package in Intune

Go to Devices → Manage devices → Scripts and remediations → Remediations → Create script package.
1

Upload the scripts

Name the package Unbound daily onboard and upload both files as UTF-8 without a BOM.
2

Set the options

Run using logged-on credentials: No. Enforce signature check: No. Run in 64-bit PowerShell: Yes.
3

Assign and schedule

Assign to your developer device group and set the schedule to Daily.
To run it on one device now, open that device in Intune and choose Run remediation.

Verify

Intune

Device status shows Without issues.

Device

C:\Program Files\Unbound\last-success.txt updates daily.

Unbound

Devices appear with a recent last-seen time.

Troubleshooting


No Remediations licence

Deploy this once as a Platform script, run as SYSTEM in 64-bit. The task script holds your API key, so it lives under C:\Program Files, which standard users cannot write to, locked to SYSTEM and administrators.
Remove it with Unregister-ScheduledTask -TaskName 'Unbound Daily Onboard' -Confirm:$false.

Remove Unbound

Run the installer with -Clear in an elevated PowerShell, then delete C:\Program Files\Unbound.

Tamper Resistance

Best practices for keeping Unbound active on every device with managed settings.