---
title: "Install updates, restart only if needed"
description: "System template: restart if needed, install updates, take an inventory"
category: "Actions"
subcategory: "Predefined programs"
last_updated: "2026-10-29"
source_url: "https://docs.xeox.com/actions/cA3GbGqPkitikUefevioxb/install-updates-restart-only-if-needed/d1ECLHSHLN5XNFoRpyUHDW"
---

# Install updates, restart only if needed

The system template **Install updates, restart only if needed** first restarts the device if a restart is pending, then installs the missing Windows updates and takes a full inventory. 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; `$Minutes` is the time left. Leave it empty to restart without a message.

Below, you see the actions it adds: 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), then [Search Windows Updates](https://docs.xeox.com/actions/cA3GbGqPkitikUefevioxb/search-windows-update/oKLwwAcojt2AR9p9MoLzVR), [Install Windows Updates](https://docs.xeox.com/actions/cA3GbGqPkitikUefevioxb/install-windows-update/hQreNsFguLzCYkyGcyPb8b), another search and [Full inventory](https://docs.xeox.com/actions/cA3GbGqPkitikUefevioxb/full-inventory/bZ8BwZmLF1wGEh3z4oRFV6). **Add 7 actions** puts them into the task.

![notion image](https://docs.xeox.com/media/27880e49a91320ef.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.
