Intune is the MDM AgenShield connects to directly. Connect your Microsoft
Entra tenant once and deploy campaigns from the Frontegg Portal. macOS and
Windows use different installation and configuration objects; see
Windows deployment for Windows prerequisites and manual
setup.
Connected (recommended)
Register one Entra app. AgenShield creates the group, the profile, the installer app, and the offboarding script for you — and can repair them if they drift.
Manual upload
Download the campaign’s profile and package and push them yourself. Fully supported, no tenant connection.
Connected integration
You do four things once — register an app, hand over two IDs, upload a certificate, grant permissions — and from then on every campaign deploys with one click from the Frontegg Portal.What AgenShield does on your behalf
Once connected, pushing a campaign creates and maintains these objects in your tenant:
Your side of the deal is one thing: put devices or users in the group —
always with Assign members in the Frontegg Portal, including when you bring
back a device you offboarded earlier. Adding members there first takes each one
out of the
AgenShield — Uninstall offboarding group and refuses one that
already belongs to another campaign’s group (see
One device, one campaign). A device added directly
in Entra or Intune skips both steps: if it is still in AgenShield — Uninstall
from an earlier offboarding, the uninstall script assigned to that group
uninstalls AgenShield from it again.
The profile pairing below is for macOS. Connected macOS push deploys the
all-in-one profile and package. Windows uses its own enrollment profile and
installer app; do not upload a macOS profile to Windows. To push macOS
objects yourself, use Manual upload.Mixing the two is what to avoid, and the rule is per device: one profile and
one installer. Never both profiles (they carry the same payloads, and a
duplicate network-filter payload resolves unpredictably), and never both the
package and the install command.The pairing is not free in both directions. The install command works with
either profile, because it carries the enrollment token itself. The package
requires
agenshield.mobileconfig: it has no other way to receive a token, and
deployment.mobileconfig does not carry one — see
Choosing a profile.Connect your tenant
Settings → Integrations → Connect Microsoft Intune. The wizard has four steps and takes about five minutes. AgenShield authenticates with a certificate it generates — you never create, paste, or rotate a client secret.
Settings → Integrations — where the connection starts and where its health is reported afterwards.
1. Register an app in Entra
In the Entra admin center: Entra ID → App registrations → New registration.- Name it something recognisable, e.g.
AgenShield. - Keep the default account type — your organization only.
- Skip the redirect URI. It is not used.
- Select Register.

The wizard mirrors the Entra steps as you go — register once, then hand the two IDs back.
2. Give AgenShield the app’s identifiers
Back in the wizard, enter a name for the connection plus the two GUIDs from your new app registration’s overview page:3. Upload the certificate
AgenShield generates a keypair, keeps the private key encrypted, and hands you the public half. Download it, then in your app registration go to Certificates & secrets → Certificates → Upload certificate and add the file. The wizard shows the SHA-1 thumbprint Entra will display after upload — compare the two to confirm you uploaded the right file to the right app.4. Add permissions and grant consent
API permissions → Add a permission → Microsoft Graph → Application permissions. Required. The connection test probes each of these individually, so a failure tells you exactly which one is missing.Optional permissions — three Frontegg Portal conveniences, each addable later
Optional permissions — three Frontegg Portal conveniences, each addable later
Each unlocks one specific feature and nothing else. To add one later, append
the permission and re-run Grant admin consent — no reconnection needed.
Push a campaign
From Devices (on the campaign) or Settings → Integrations, choose Push to Intune:- Pick the campaign.
- Name the group — e.g.
AgenShield — Pilot. - Choose whether members will be devices or users.
Membership changes take a few minutes to reach devices. That is Intune’s
check-in cadence, not AgenShield.
One device, one campaign
A device or user may belong to only one AgenShield campaign group per connection. If you try to add one that is already in another campaign’s group, the whole request is refused and the conflicts are listed — moving a device between campaigns is a decision, not a side effect. Confirm, and AgenShield removes it from the other group first.Track the rollout
WithDeviceManagementManagedDevices.Read.All granted, the push view compares
group membership with Intune’s inventory and the devices that actually enrolled.
Where Windows rollout is available, review macOS and Windows separately:
It also lists enrolled devices that are not in the group — usually machines
that were installed by script before the MDM push existed.
Offboard a device
Use Offboard, not “remove from group”. Successful offboarding removes the selected member from this connection’s install targeting before adding it to the uninstall group, whose assigned script removes AgenShield at the next check-in. Re-onboarding removes uninstall-group membership before restoring install targeting.If offboarding reports conflicting user/device assignments or incomplete
inventory, it has not established a safe uninstall transition. Have IT remove
or migrate the relevant other install assignments, resolve the inventory
access issue where reported, then retry the supported offboarding action.
Do not remove an entire user from targeting just to offboard one of that
user’s devices. A refused action is not successful uninstall evidence.
Windows offboarding and reinstall timing
On Windows, the uninstall script and the installer app are run by the Intune Management Extension, which checks in on its own schedule — about every eight hours, separately from the device’s MDM sync. An offboarded device can therefore keep AgenShield for hours. To make a device check in now, restart the Microsoft Intune Management Extension service on it, for example from an administrator PowerShell session:AgenShield Installer app was last processed on that device. Restarting the
Intune Management Extension does not bypass it. Wait for the interval to pass,
or clear the device’s cached evaluation of the app by following
Microsoft’s guidance.
A reinstalled app is not a re-enrolled device. After AgenShield is reinstalled,
confirm that agenshield status reports the device enrolled with the expected
organization and cloud URL, and that the device appears under Devices in
the Frontegg Portal and receives your organization’s policy. If enrollment is
refused because the device was enrolled before, follow
Re-enroll a previously enrolled Windows device.
Re-enroll a previously enrolled Windows device
Offboarding removes AgenShield from a Windows device, but it does not release the device’s registration with your organization. When AgenShield is installed on that device again, in the same campaign or another one, enrollment can be refused: the AgenShield app says Your organization already holds a registration for this device, andagenshield status does not report the
device as enrolled. The device keeps retrying, but nothing done on the device
resolves this, including entering a token.
To recover:
- In the Frontegg Portal, go to Devices, find the device’s old record, and revoke it.
- Check whether revoking also offboarded the device. It does when AgenShield
can identify the device in Intune and no other active record claims it, as
described in
Revoking a device your MDM manages:
the device is removed from every AgenShield campaign group on this
connection and added to the
AgenShield — Uninstallgroup, whose script removes AgenShield at the next check-in. If the device is now inAgenShield — Uninstall, promptly add it back to its campaign with Assign members, which takes it out of the uninstall group. - Confirm that the device enrolled again before you consider it done:
agenshield statusreports it enrolled with the expected organization and cloud URL, the device appears under Devices in the Frontegg Portal and receives your organization’s policy, and, after any required restart,agenshield doctorshows Kernel enforcement asdriver loaded and enforcing policy.
Keep it healthy
Two maintenance actions, both in Settings → Integrations:
If someone edits or deletes an AgenShield object in Intune or Entra, Check
setup reports it and Repair converges it back.
If a revoked campaign still shows cleanup pending, use Retry cleanup
where that action is available, rather than repairing an install you revoked.
Resolve any reported assignment conflict or connection error first. Cleanup
can partially complete: a blocked or failed retry may have removed some
deployments while retaining others for a safe later retry. It is not an
all-or-nothing result and does not prove device uninstall succeeded. Review
the fully cleaned and remaining deployment counts before treating retained
objects as removed.
Windows deployment
Windows connected push needs devices that Intune already manages and a Windows release that includes the Intune assets. Check both once, below, before your first Windows push. Your environment must also expose the Windows installer app, enrollment profile, and setup checks; if those objects are not available in your connection, use Manual Windows setup. Availability of a Windows download alone does not prove Intune delivery has completed. Devices also need outbound access to AgenShield’s hosts, including an MSI download of about 300 MB per device during installation; see Windows network requirements.Prepare Intune for Windows enrollment
AgenShield reaches only Windows devices that are enrolled in Intune. A device that is Entra-joined but not enrolled never receives the app or the profiles, and does not appear under Devices → Windows in Intune. Check once per tenant:
To enroll a device that missed automatic enrollment, sign in to it as a user in
the MDM user scope and open Settings → Accounts → Access work or school →
Enroll only in device management, then complete the MFA prompt. If Windows
asks for a server address, enter
https://enrollment.manage.microsoft.com/enrollmentserver/discovery.svc. An
enrolled device shows an Info button on its work or school account; without
one, Intune does not manage the device. See Microsoft’s guides to
automatic enrollment
and
enrollment discovery.
The MDM user-scope group and the AgenShield campaign group are unrelated. The
user scope decides which users’ devices Intune manages at all; the campaign
group decides which managed devices receive AgenShield. A device needs both:
adding it to a campaign group does not enroll it in Intune.
Windows release requirements
Intune delivery takes its Windows assets from the current release on the Windows release channel used for Intune. That release must include the signed installer, the bootstrap, and the policy definitions (ADMX and ADML). When it does not, the connection still reports connected but its test shows a Windows readiness warning, and a push reports Windows delivery as degraded with:What the push creates on Windows
For supported x64 Windows devices, the connected path creates:- A Win32 app,
AgenShield Installer, shared across the connection and assigned as required. It runs a signed, tokenless bootstrap as SYSTEM; the device downloads and verifies the MSI. - A shared Windows definition profile,
AgenShield Windows Policy Template, per connection. It ingests the AgenShield ADMX once and is assigned to campaign groups. - A Windows enrollment profile per campaign, named after the campaign rather
than the group:
AgenShield — <campaign name> (Windows). It sets only the machine enrollment policy, including the token and cloud URL, plus the organization label and version pin when provided. It does not ingest another ADMX copy. A campaign’s version pin applies to Windows as well as macOS. Windows and macOS releases are published independently, so pin a version that includes a signed Windows installer, or clear the pin. Never bypass installer verification. - A shared Windows uninstall script,
AgenShield (uninstall, Windows), for theAgenShield — Uninstalloffboarding group.
Version value
under HKEY_LOCAL_MACHINE\SOFTWARE\AgenShield. That is an install indicator,
not proof of enrollment, current policy, or active protection. Confirm all of
those on a pilot device before expanding the rollout.
Windows Server is not an Intune enrollment target. Use Intune-supported Windows
11 devices for delivery qualification, and do not count a server-side install
test as proof that the app and profile reached an Intune-managed device.
Your organization’s PowerShell and application-control policies still apply.
Where IT enforces AllSigned, approve the verified bootstrap signer as a
machine trusted publisher before unattended execution; signature validity
alone is not publisher-trust authorization. The generated non-interactive
command fails rather than waiting for publisher approval. Paste the campaign’s
generated commands verbatim, and do not weaken IT policy to make a deployment run.
What to expect on a device
Intune schedules the app and the configuration profiles independently, so they can reach a device in either order and tens of minutes apart — longer right after a group membership change. Installation does not depend on enrollment:- If the app arrives first, AgenShield installs and waits for its configuration. It checks again every few minutes and enrolls on its own once the enrollment profile arrives. No one needs to be signed in.
- While it waits, the AgenShield app can show a form asking for an enrollment token. Do not enter a token on a managed device. Let the profile arrive, or follow the Intune delivery checks if it does not.
Restart to complete protection
A newly installed or updated AgenShield driver starts after the device restarts. When an installation or upgrade installs or updates the driver, the installer returns3010 (restart required). When the Intune app ran that
installation, Intune treats 3010 as a soft restart. It does not report the
installation as successful yet: it shows the app as Install pending
(waiting for a reboot) on that device until the device restarts, and as
Installed after the restart. During a rollout, a large Install pending
count means devices are waiting for a restart, not that installations failed.
An update from the Frontegg Portal runs outside
Intune, so Intune keeps showing the app as Installed while that update’s
restart is still pending. Check those devices with agenshield doctor, as
described below.
The restart is needed only for kernel protection. Before it, the AgenShield
background service is already running and the device enrolls with your
organization; kernel protection starts only after the restart, as described
below.
Intune also shows a restart notification, as the assignment’s end-user
notification setting allows. That notification is easy to miss, and nobody
sees it when no one is signed in. Intune does not force a soft restart, and the
assignment’s restart grace period does not apply to it. Use your normal restart
process, or the Restart device action in Intune for a pilot device.
Until the restart, what protects the device depends on the installation:
- After an upgrade, the previously loaded driver keeps protecting the
device.
agenshield doctorreports Kernel enforcement asprevious driver enforcing — restart to load the updated driver. - After a first installation, no AgenShield driver is running, and
AgenShield reports Restart required to enable kernel protection. An
upgrade from an older AgenShield version can also stop the previous driver
during installation;
agenshield doctorthen reports the same message.
driver loaded and enforcing policy. To confirm the restart independently,
compare the device’s last boot time with the last time AgenShield was installed
or updated, in an administrator PowerShell session:
agenshield doctor and confirm that Kernel
enforcement reads driver loaded and enforcing policy.
Earlier releases return 0 without requesting the restart; restart those
devices too before expecting kernel protection.
Update Windows devices
Windows devices on AgenShield 2026.10.2 or later update from the Frontegg Portal, like Macs: use Update endpoint on a device, or turn on Automatic updates under Settings → Endpoint updates. There is nothing to repackage or reassign in Intune. The device verifies the signed installer before it installs, and an update that replaces the driver needs the restart above. A device on an earlier version cannot be updated from the Frontegg Portal: Update endpoint is refused with a message naming the minimum version, and automatic updates leave the device where it is. Bring it to 2026.10.2 or later with a new signed installer through Intune. The shared installer app does not do this for you, because its detection rule treats any installed version as present. See Update limitations.Manual Windows setup
No tenant connection is needed:- Create or reuse the shared ADMX definition profile once, then deliver a separate enrollment-policy profile for the campaign. A direct registry-policy deployment is an alternative when your management tool supports it.
- Where the campaign supplies
AgenShield.intunewin, add it through Apps → Windows → Add → Windows app (Win32). Copy the campaign’s install and uninstall commands, choose System install behavior, and use its 64-bit registry existence detection rule. Assign as Required to the same device group. - If the package is unavailable, deploy the signed MSI or package the signed
Windows bootstrap using your normal Win32 app process. Do not rename a
.ps1or ZIP file to.intunewin. - Preserve the installer return codes:
0is success,3010requires a restart, and1618is retryable. Signature or checksum failures must remain failures. - Check app installation, configuration-setting results, AgenShield enrollment, received policy, and any required restart independently.
Manual upload
No tenant connection, no app registration. Push the two objects yourself. The instructions in this section are for macOS. For Windows, use Manual Windows setup.1. The configuration profile
- Devices → Manage devices → Configuration → Create → New policy.
- Platform macOS, profile type Templates → Custom.
- Name it, e.g.
AgenShield, and uploaddeployment.mobileconfig. - Deployment channel: Device channel.
- Assign it to your target device group.
2. The install script
- Devices → macOS → Shell scripts → Add.
-
Upload the install script from your campaign’s MDM guide in the Frontegg
Portal:
It downloads the whole installer before running it, so a failed download is reported as a failure instead of a success.
- Run script as signed-in user: No.
- Assign it to the same device group.
Give the first run time. Shell scripts are not delivered over the same
channel as profiles. They are run by the Intune management agent, which is
installed the first time you assign a script to a device, and which then checks
in on its own schedule — up to 8 hours, independently of the device’s MDM
check-in. Until that first agent check-in the script reports no status at all,
which looks like nothing happening.The Sync device action refreshes MDM only; it does not pull scripts. To
make a test device check in now, open Company Portal on it, select the
device, and choose Check status. If a script has still not run after a day
of the Mac being awake and online, see
The install script never runs.
Choosing a profile
Both campaign profiles carry the macOS approvals. They differ only in whether they also carry the enrollment token, and that difference decides which installers each can be paired with.
So: the install command pairs with either profile, and the package pairs only
with
agenshield.mobileconfig. Pairing the all-in-one profile with the install
command is fine and slightly belt-and-braces: the command’s token is used, and
the profile’s is the fallback if the command has not run yet. Pairing the
package with deployment.mobileconfig is the one combination that does not
work — the Mac gets every approval and never enrolls. What you must not do is
deploy both profiles, or both installers, to the same Mac.
If your tenant uses Multi-Admin Approval, the profile and the script may sit in
pending approval before they deploy.
Sign people in from the profile (macOS)
The AgenShield settings in the macOS profile (preference domaincom.frontegg.AgenShield) can carry an optional UserEmail key with the value
{{mail}}. Intune fills it in with the email of each Mac’s user, and with a
valid email the Mac counts as signed in as that person and never shows a
sign-in page; a real sign-in still wins.
- Use the variable, never a literal email: a literal value names every Mac in the group as the same person.
- Leave
DeviceNameout. Intune has no variable for a Mac’s computer name. - If Intune has no email to fill in for a Mac, the value counts as no email and that Mac keeps the normal sign-in.
Next
Enrolled devices
Reading fleet health once devices land.
MDM enrollment reference
What each profile payload does, and how to verify a device.