Org mode: Microsoft Intune
Deploy Lore’s managed hook to Windows and macOS devices with Intune. Read Org mode first.
Prerequisites
- Pro plan, org owner, and the bundle downloaded from Governance Hooks → Organization with Microsoft Intune selected.
- The Lore CLI deployed to the same devices (for example as a Win32 or macOS app).
- A device group for the people who use AI tools.
Deploy on Windows
-
In the Intune admin center , go to Devices → Windows → Scripts and remediations → Platform scripts → Add.
-
Upload
intune/lore-hooks-windows.ps1and use these settings:Setting Value Run this script using the logged on credentials No (runs as SYSTEM) Enforce script signature check No, unless your org signs scripts Run script in 64 bit PowerShell Host Yes -
Assign it to the device group.
Platform scripts run once per device. To have Intune re-apply the hook if it’s removed, create a Remediation instead, with lore hooks status --json as detection and the same script as remediation.
Deploy on macOS
- Go to Devices → macOS → Scripts → Add and upload
intune/lore-hooks-macos.sh. - Settings: Run script as signed-in user: No, Script frequency: Every 1 day, Max retries: 3.
- Assign it to the device group.
Verify
- In Intune, the script’s device status shows success, and its output lists each tool with scope
managed. - On a device: start a new AI session and check that it can quote your org’s Rules.
- In the Lore panel, Governance Hooks → Coverage shows the device as Enforced within an hour.
Roll back and uninstall
Unassign the scripts, then deploy a script that runs, as administrator:
& "$env:ProgramFiles\Lore\lore.exe" hooks uninstall --scope=managedlore hooks uninstall --scope=managed