---
title: "Restart if needed"
description: "System template: restart a client only if an installed update needs it"
category: "Actions"
subcategory: "Predefined programs"
last_updated: "2026-10-29"
source_url: "https://docs.xeox.com/actions/cA3GbGqPkitikUefevioxb/restart-if-needed/8Y7fsnLmVHtPvzmLoH9nAj"
---

# Restart if needed

The system template **Restart if needed** restarts a client when an installed update needs it, after a message to the signed-in user. It installs nothing itself. Use it when the updates are installed some other way, for example by Windows Automatic Updates: the **Patch clients** wizard sets it up as a policy in that case (see[

**Wizards**](https://docs.xeox.com/automations/kk29w6Dr2iM3dbYa6gqsvV/wizards/6Ji769S94EEF673BAew1vL)). You find it in the **Toolbox** under **System templates**.

![notion image](https://docs.xeox.com/media/25d44b044b8caf2f.png)

- **Restart after (minutes)**: how long the message counts down before the restart.
- **Message before the restart**: shown to whoever is signed in. Leave it empty to restart without a message.

Below, you see the actions it adds:[

Search Windows Update](https://docs.xeox.com/actions/cA3GbGqPkitikUefevioxb/search-windows-update/oKLwwAcojt2AR9p9MoLzVR), which also finds out whether a restart is pending, and an[

if](https://docs.xeox.com/actions/cA3GbGqPkitikUefevioxb/if/8umz4QBcnVqUxtn6PyNL4t) on **rebootRequired** with[

Send Windows Message](https://docs.xeox.com/actions/cA3GbGqPkitikUefevioxb/send-windows-message/nCpZvUv6rG3tgcrtNHzJdu) and[

Reboot](https://docs.xeox.com/actions/cA3GbGqPkitikUefevioxb/reboot/4EM6MBA4qoQkU9ikadTF8u). **Add 4 actions** puts them into the task.

![notion image](https://docs.xeox.com/media/560dd76245489378.png)

> A system template is added as a copy: you can change its actions afterwards, and later versions of the template don't change them.
