Skip to main content
Workspace ONE UEM runs one PowerShell script on a schedule, so devices stay onboarded and re-apply if their setup drifts. There is no detection script — the schedule does that job.

Before you begin

  • Push Python 3 as an app first, with InstallAllUsers=1 PrependPath=1 Include_launcher=1. The script runs as SYSTEM, and a per-user install is not on SYSTEM’s PATH.
  • Allow HTTPS to getunbound.ai, backend.getunbound.ai, api.getunbound.ai, raw.githubusercontent.com and github.com.

1. Get your API key

Sign in to Unbound as an admin and open Configure. Under Choose scope select My org (MDM), then under Run the install command select the Windows tab and copy the command. Your key is the value after -ApiKey. It is masked on screen and copied in full.

2. Add the script

In the Workspace ONE UEM console go to Resources → Scripts → Add → Windows.
1

General

Name: Unbound daily onboard. Select Next.
2

Details

Language: PowerShell. Execution Context: System. Execution Architecture: 64-bit. Timeout: 18000 — five hours, in seconds. The first run includes a discovery scan that can take hours on a large machine; a shorter timeout kills it partway through. Paste this as the script, replacing YOUR_ADMIN_API_KEY with the key from step 1:
3

Variables

None. Select Save.
The icacls lines lock C:\Program Files\Unbound to SYSTEM and administrators before the key is written, and the script stops if it cannot.

3. Assign it

Open the script and select Assign → New Assignment.
1

Definition

Assignment Name: Unbound daily onboard. Under Select Smart Group, choose your developer device group.
2

Deployment

Under Triggers select Schedule and set the interval to 24 hours. Also select the Run Immediately event, so devices already enrolled run it at their next check-in instead of waiting a day. Select Save.

4. Verify

Workspace ONE

Open the device under Devices → List View, then the Scripts tab. The Status column shows Executed for Unbound daily onboard. Failed means the exit code was not 0 — open the row to read the output.

Device

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

Unbound

Devices appear with a recent last-seen time.

Troubleshooting


Command switches


Remove Unbound

Remove the script’s assignment first, or the next scheduled run reinstalls. Then, in an elevated PowerShell on the device:

Tamper Resistance

Keeping Unbound active on every device with managed settings.