> For the complete documentation index, see [llms.txt](https://docs.nexthink.com/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nexthink.com/platform/library-packs/device-landscape/workflow_-device-restart-enforcement/configuration-guide-device-restart-enforcement.md).

# Configuration guide: Device restart enforcement

{% hint style="warning" %}
The configuration options on this page are only accessible to [administrators](https://docs.nexthink.com/platform/user-guide/administration/account-management/roles#roles-administration).

Refer to the [Usage guide: Device restart enforcement](/platform/library-packs/device-landscape/workflow_-device-restart-enforcement/usage-guide-device-restart-enforcement.md) to use library content as a standard user.
{% endhint %}

## Prerequisites <a href="#pre-requisites" id="pre-requisites"></a>

This library pack contains content from the following [expansion products](https://docs.nexthink.com/platform/overview/products):

* [Employee Engagement - Campaigns](https://docs.nexthink.com/platform/user-guide/campaigns)
* [Flow - Workflows](https://docs.nexthink.com/platform/user-guide/workflows)

## Content list and dependency <a href="#configurationguide-hardresettroubleshooting-contentlistanddependency" id="configurationguide-hardresettroubleshooting-contentlistanddependency"></a>

| Type                                                    | Name                             | Description                                                                                                                                                                                                                                                                                     |
| ------------------------------------------------------- | -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Workflow](/platform/user-guide/workflows.md)           | Device restart enforcement       | It performs a check of the device's restart status. The default threshold is no restarts in the last 10 days. If a restart is required, it repeatedly asks for user approval to restart, offering the option to postpone the restart. Once the user approves, the workflow restarts the device. |
| [Remote action](/platform/user-guide/remote-actions.md) | Restart macOS device             | Restarts the macOS device.                                                                                                                                                                                                                                                                      |
|                                                         | Restart Windows device           | Restarts the Windows device.                                                                                                                                                                                                                                                                    |
| [Campaign](/platform/user-guide/campaigns.md)           | Restart device - Workflow Invoke | Informs users that a restart is required, providing an option to restart now or delay the restart by 1h or 24h.                                                                                                                                                                                 |

## Configuration guide <a href="#configurationguide-hardresettroubleshooting-configurationguide" id="configurationguide-hardresettroubleshooting-configurationguide"></a>

Follow these steps to install and configure content:

* Before configuration - Install library pack content from [Nexthink Library](https://docs.nexthink.com/platform/latest/library)
* [Step 1 - Configure remote actions](#configurationguide-hardresettroubleshooting-step4-configureremoteaction-s)
* [Step 2 - Configure campaigns](#step-4-schedule-the-workflow)

### Step 1 - Configure remote actions <a href="#configurationguide-hardresettroubleshooting-step4-configureremoteaction-s" id="configurationguide-hardresettroubleshooting-step4-configureremoteaction-s"></a>

This workflow uses the following remote actions. Make sure to install the latest versions and complete the setup as below.

| Name                   | Trigger                                                                          | Parameters to edit                                                                                                                                                                                                                                                                                                                                                                            |
| ---------------------- | -------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Restart macOS device   | Workflow trigger should be enabled so that it can be triggered from the Workflow | <ul><li>Number of days since last reboot: 0</li><li>Show campaign: Never</li><li>Campaign ID: restart\_device\_invoke</li><li>Postpone grace period in days: 0</li><li>Restart delay in minutes: 1</li></ul>                                                                                                                                                                                  |
| Restart Windows device | Workflow trigger should be enabled so that it can be triggered from the Workflow | <ul><li>Number of days since last reboot: 0</li><li>Test pending restart: False</li><li>Show campaign: Never</li><li>Campaign ID without delay: restart\_device\_invoke</li><li>Campaign ID with delay: restart\_device\_invoke</li><li>Postpone grace period in days: 0</li><li>Restart delay in seconds: 55</li><li>Campaign timeout: 60</li><li>User chosen restart delay: False</li></ul> |

### Step 2 - Configure campaigns <a href="#step-4-schedule-the-workflow" id="step-4-schedule-the-workflow"></a>

Navigate to the [manage campaigns](/platform/user-guide/campaigns.md) administration page to review and edit your campaigns.For each installed campaign, please ensure to:

* Customize the sender name and image.
* Review and adjust questions.
* Publish the campaign when you are ready to use it.

We recommend the following configurations for these campaigns:

| Name                             | Trigger  | Priority   |
| -------------------------------- | -------- | ---------- |
| Restart device - Workflow Invoke | Workflow | Not urgent |

***

RELATED TOPICS

* [Manage Workflows](/platform/user-guide/workflows/managing-workflows.md)
* [Manage Remote Actions](/platform/user-guide/remote-actions/setting-up-and-managing-remote-actions/managing-remote-actions.md)
* [Workflow: Device restart enforcement](/platform/library-packs/device-landscape/workflow_-device-restart-enforcement.md)
* [Usage guide: Device restart enforcement](/platform/library-packs/device-landscape/workflow_-device-restart-enforcement/usage-guide-device-restart-enforcement.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.nexthink.com/platform/library-packs/device-landscape/workflow_-device-restart-enforcement/configuration-guide-device-restart-enforcement.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
