Reboot Nag [Restart Alert] [Prompter]
Overview
Manages and displays reboot prompts for Windows systems based on pending reboot status or system uptime. The prompts are customized as per the client’s logo and branding. The script runs via Task Scheduler to ensure users are periodically notified, allowing controlled postponement, repeated reminders (nag), and enforced restarts as per defined configuration.
Implementation
-
Download the component Reboot Nag [Restart Alert] [Prompter] from the attachments.
-
After downloading the attached file, click on the
Importbutton -
Select the component just downloaded and add it to the Datto RMM interface.

Sample Run
To execute the component over a specific machine, follow these steps:
-
Select the machine you want to run the
componenton from the Datto RMM. -
Click on the
Quick Jobbutton.
-
Search the component
Reboot Nag [Restart Alert] [Prompter]and click onSelect.

-
After selecting the component, enter the values.
-
Select the number of Prompts you want to show during the activity.
-
Enter the interval time you want the popup to appear again.
-
You can set the number of days to show if a reboot is pending.

-
Apart from setting up the days in case of a reboot is pending, you can also the value for the machine which has not been rebooted for x days.
-
Set the Timeout interval for the regular prompts.
-
Set the Timeout interval for final prompts.
-
You can also set the suppress popup time window as well eg.
2100-0700

-
You also can enable the option to skip the weekends to pause the reboot prompts.
-
You can select the option to forcefully restart the machine if the user is not logged in.
-
You can also forcefully execute the scheduled task if it already exists as the reboot prompter is working after the task is created.
-
Set the Icon and Header image for the prompt.

-
Click on
Runto initiate the component. -
Below are the examples of how the prompter will look like after configuring the Nag.


-
This is how the final prompt will look like, where only the restart option will be present.

Datto Variables
| Variable Name | Type | Default | Description |
|---|---|---|---|
| Desktop_reboot_max_postpone | String | 4 | Number of times the user can postpone the reboot prompt. At 0, the popup is shown repeatedly with no countdown. |
| Desktop_reboot_popup_mins | String | 240 | Interval in minutes between reboot prompts. |
| Desktop_reboot_show_popup_if_pending_reboot_not_rebooted_days | String | 1 | Displays a reboot popup when a restart is pending. This also define the number of days after which the reminder (nag) should start appearing. Setting the value to 0 will disable the reminder. |
| Desktop_reboot_show_popup_if_not_rebooted_days | String | 30 | Shows reboot popup if the system has not been rebooted for this many days(i.e. Uptime days), regardless of pending reboot. Set to 0 to disable. |
| Desktop_reboot_regular_prompt_timeout | String | 600 | Timeout in seconds for the regular prompt. |
| Desktop_reboot_final_prompt_timeout | String | 900 | Time in seconds to wait before forcefully restarting the computer after the final prompt is missed. |
| Desktop_reboot_suppress_popup_time_windows | String | Time window(s) in 24-hour format (e.g., 1800-0900) during which prompts are suppressed. | |
| Desktop_reboot_skip_weekends | Boolean | False | If set, prevents reboot prompts from being shown on Saturdays and Sundays. |
| Reboot_if_not_logged_in | Boolean | True | If set, forcefully restarts the computer if no user is logged in when prompting conditions are met. |
| Force | Boolean | False | Forcefully recreates the scheduled task if it already exists. Use this option when updating or modifying the task's arguments. |
| Icon | String | Specify the icon URL for the reboot prompt. Example: https://content.provaltech.com/img/logo_r4.png | |
| HeaderImage | String | Specify the header image URL for the reboot prompt. Example: https://content.provaltech.com/img/logo_r4.png |
Output
StdOut
A job status of Success is expected.

StdErr
StdErr is not expected.
Attachments
Reboot Nag [Restart Alert] [Prompter]
Changelog
2026-03-23
- Code Signed the PowerShell script.
- Converted
IconandHeaderImageto run-time variables. - Updated .Net8 Desktop Runtime installation logic to install the latest available version.
2026-03-17
- Initial version of the document