# Usage guide: Intune client continuity

{% hint style="warning" %}
This page outlines various ways to use the pack, including use case examples.

Administrators can refer to the [Configuration guide: Intune client continuity](/platform/library-packs/security-and-compliance/workflow_-intune-client-continuity/configuration-guide-intune-client-continuity.md) to set up and customize the installed content.
{% endhint %}

The **Intune client continuity** library pack enables EUC teams to:

* Identify common Intune client issues
* Automatically apply fixes for the most common Intune client issues
* Report the cases where automatic fixes were not available or where these fixes did not help through the ITSM ticket.

## Library pack uses <a href="#usageguide-hardresettroubleshooting-workflowstructure" id="usageguide-hardresettroubleshooting-workflowstructure"></a>

{% hint style="info" %}
Jump to [Use cases](#use-cases) on this page to see relevant scenario applications.
{% endhint %}

Use the library pack content for the following purposes.

### **Visibility**

The **Intune client continuity** workflow is the starting point for this library pack. This automated workflow performs checks and self-healing actions to ensure Intune client compliance, resolving common issues and creating ITSM tickets for unresolved ones, allowing support teams to focus on more critical problems.

### Use cases

This section describes the key part of this workflow, which identifies the health of the Intune client's key components, applies the remediation to bring the client to a working state, and then verifies its synchronization and compliance status.

#### Check Intune enrollment and compliance

1. The device's Intune enrollment state is checked directly through a Graph API connection
2. If the device is not enrolled, then the workflow terminates.
3. If the device is enrolled correctly, the workflow checks the status of Intune client synchronization with a Get Intune synchronization status remote action.

<figure><img src="/files/g8cCUIPHUxGcGA2Zqzqu" alt=""><figcaption></figcaption></figure>

4. If the synchronization status is healthy, the workflow checks the device's Intune compliance status.
5. If compliant, the workflow terminates.
6. If not compliant, the workflow will next force the Intune client to sync policies. This is covered in Step 10 [here](#intune-synchronization-troubleshooting).

<figure><img src="/files/dv98O2fIWiYMSfUXAJxt" alt="" width="375"><figcaption></figcaption></figure>

#### Intune synchronization troubleshooting

1. If the synchronization status is not healthy, the remote action 'Get Intune device status' is run on the device.
2. The first check is whether the IME service is detected.
3. If not, a diagnostics check is made on the device and an ITSM ticket is logged, this is explained [here](#create-diagnostics-reports-for-devices-with-synchronization-issues).
4. If detected, the next check is whether the IME service is running.

<figure><img src="/files/z2ZDiEf92sQbyZuEVPSn" alt=""><figcaption></figcaption></figure>

5. If the IME service is not running, the remote action 'Configure IME service' is run on the device, and the workflow moves to step 9.
6. If the IME service is running, the workflow checks whether an MDM certificate is present on the device.
7. If not present a diagnostics check is made on the device and an ITSM ticket is logged, this is explained [here](#create-diagnostics-reports-for-devices-with-synchronization-issues).
8. If an MDM certificate is present, the certificate's validity is checked.
9. If the MDM certificate is not valid, a diagnostics check is made on the device and an ITSM ticket is logged, this is explained [here](#create-diagnostics-reports-for-devices-with-synchronization-issues).
10. If the certificate is valid, the Intune DmWapPushService is restarted using the 'Restart Intune service' remote action.
11. The next step is to force the Intune client to sync policies, using the remote action 'Invoke Intune policy sync'.
12. The workflow will now pause for 5 minutes to allow the synchronization process to complete.

<figure><img src="/files/rEZ6dOcb93OX35zrWd7e" alt=""><figcaption></figcaption></figure>

The last section of the workflow repeats the synchronization and diagnostic checks already performed to confirm that the self-help process has completed successfully.

#### Create diagnostics reports for devices with synchronization issues

1. If the synchronization process is still failing, the remote action 'Execute Intune diagnostics script' is run to collect diagnostics data
2. This is then written to an ITSM ticket.

<figure><img src="/files/gf42ABQWuixoHO75AIhz" alt=""><figcaption></figcaption></figure>

#### Create diagnostics reports for non-compliant devices

1. If the device is now synchronized with Intune, it is checked to ensure compliance with Intune policies.
2. If the device is non-compliant, the remote action 'Execute Intune diagnostics script' is run to collect diagnostics data.
3. This is then written to an ITSM ticket.

<figure><img src="/files/aX0bYISBIWFdPKIDyeED" alt=""><figcaption></figcaption></figure>

**Check Intune enrollment on macOS devices**

This branch of the workflow is dedicated to **macOS devices** and is triggered only when the device platform check confirms macOS. Its purpose is to renew Intune enrollment, force a policy synchronization, and determine the device’s compliance state.

<figure><img src="/files/zNtTYaFmKbRtV6cYFtXC" alt=""><figcaption></figcaption></figure>

1. **Check Device Platform:** The workflow identifies if the endpoint is macOS. If the device is not macOS, this branch is skipped.
2. **Check Intune Enrollment:** The workflow verifies if the macOS device is enrolled in Intune. Not Enrolled: the workflow ends for this device. Enrolled: proceed to the next step.
3. **Trigger Remote Action: Intune Policy Sync & Profile Refresh (macOS):** This Remote Action renews the macOS device's Intune enrollment and forces policy and profile synchronization with Intune.
4. **Wait 5 Minutes for Synchronization:** The workflow delays 5 minutes to allow Intune to complete the enrollment refresh and policy sync.
5. **Check Intune Enrollment Status:** The workflow checks if the device has successfully renewed its Intune enrollment, with two possible results: Renewed: continue to compliance verification, or Not Renewed: the device is reported as an exception (an ITSM ticket is created).
6. **Check Device Compliance State:** For devices with successful enrollment renewa**l**, the workflow checks their Intune compliance status. For devices with successful enrollment renewa**l**, the workflow checks their Intune compliance status: Compliant: end state (success) or Non-compliant: device is reported via ITSM ticket for follow-up.
7. **ITSM Ticket Creation (if required):** When a device fails to renew enrollment or remains noncompliant, the workflow automatically: Creates an ITSM ticket and reports the device details and logs for support team investigation.

***

RELATED TOPICS

* [Manage Workflows](https://nexthink.gitbook.io/opd/user-guide/workflows/managing-workflows)
* [Manage Remote Actions](https://nexthink.gitbook.io/opd/user-guide/remote-actions/managing-remote-actions)
* [Workflow: Intune client continuity](/platform/library-packs/security-and-compliance/workflow_-intune-client-continuity.md)
* [Configuration guide: Intune client continuity](/platform/library-packs/security-and-compliance/workflow_-intune-client-continuity/configuration-guide-intune-client-continuity.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nexthink.com/platform/library-packs/security-and-compliance/workflow_-intune-client-continuity/usage-guide-intune-client-continuity.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
