# Windows Enrollment with Intune

> Deploy the CapaOne Agent from Microsoft Intune in three steps, then add a compliance check that verifies it is installed.

Source: https://docs.capaone.com/capaone/enrollment/windows-enrollment-with-intune/  
Product: CapaOne — a separate CapaSystems product; do not apply this page to any other.

You can deploy the CapaOne Agent from Microsoft Intune in three steps.

With a few more steps, you can also add a compliance check to verify that the CapaOne Agent is installed.

## Deploy the CapaOne Agent

1) Create a group containing the endpoints that should have the CapaOne Agent installed.

<video src="/attachments/capaone/fd2580a2-173d-44ce-9f4c-658e59c55b1c.mp4" controls preload="metadata" playsinline style="width:100%;max-width:720px;border-radius:0.5rem;"></video>

2) Download the *InstallCapaOneAgent.ps1* script from [CapaOne](https://dash.capaone.com/) Enrollment

3) Import the PowerShell script in Microsoft Intune and assign the newly created group

<video src="/attachments/capaone/694cfcc0-55cf-4e19-87b7-517f9829f4e3.mp4" controls preload="metadata" playsinline style="width:100%;max-width:720px;border-radius:0.5rem;"></video>

## Create a compliance check (optional)

1) Download the *CapaOneAgentInstalled.ps1* and the *CapaOneAgentInstalled.json* file from [CapaOne](https://dash.capaone.com/) Enrollment

2) Add the *CapaOneAgentInstalled.ps1* as a discovery script

<video src="/attachments/capaone/60ae3874-dcd8-4cf2-976d-1f11af80b369.mp4" controls preload="metadata" playsinline style="width:100%;max-width:720px;border-radius:0.5rem;"></video>

3) Create and assign the compliance policy

<video src="/attachments/capaone/bf3d9aa7-473f-4709-beea-51a51bec6eca.mp4" controls preload="metadata" playsinline style="width:100%;max-width:720px;border-radius:0.5rem;"></video>

## Additional information

According to [Microsoft](https://learn.microsoft.com/en-us/mem/intune/configuration/device-profile-troubleshoot), device compliancy is evaluated about every 8 hours on existing devices.

On newly enrolled devices, device compliancy is evaluated every 3 minutes for 15 minutes, then every 15 minutes for 2 hours, and then around every 8 hours.

The **device compliance state** will be "Not evaluated" until the device compliance policy has been applied.

![Intune device compliance state showing Not Evaluated](/attachments/capaone/intune-compliance-state-not-evaluated.png)

When the compliance policy has been applied, the device compliance state will either be "Compliant" or "Not Compliant"

![Intune device compliance state showing Compliant](/attachments/capaone/intune-compliance-state-compliant.png)
