Skip to main content

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

  1. Download the component Reboot Nag [Restart Alert] [Prompter] from the attachments.

  2. After downloading the attached file, click on the Import button

  3. Select the component just downloaded and add it to the Datto RMM interface.
    Image 1

Sample Run

To execute the component over a specific machine, follow these steps:

  1. Select the machine you want to run the component on from the Datto RMM.

  2. Click on the Quick Job button. Image 2

  3. Search the component Reboot Nag [Restart Alert] [Prompter] and click on Select.
    Image 3

  4. After selecting the component, enter the values.

  5. Select the number of Prompts you want to show during the activity.

  6. Enter the interval time you want the popup to appear again.

  7. You can set the number of days to show if a reboot is pending.
    Image 4

  8. 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.

  9. Set the Timeout interval for the regular prompts.

  10. Set the Timeout interval for final prompts.

  11. You can also set the suppress popup time window as well eg. 2100-0700
    Image 5

  12. You also can enable the option to skip the weekends to pause the reboot prompts.

  13. You can select the option to forcefully restart the machine if the user is not logged in.

  14. You can also forcefully execute the scheduled task if it already exists as the reboot prompter is working after the task is created.
    Image 6

  15. Set the Icon and Header image for the prompt.
    Image 7

  16. Click on Run to initiate the component.

  17. Below are the examples of how the prompter will look like after configuring the Nag.
    Image 7
    Image 8

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

Datto Variables

Variable NameTypeDefaultDescription
Desktop_reboot_max_postponeString4Number of times the user can postpone the reboot prompt. At 0, the popup is shown repeatedly with no countdown.
Desktop_reboot_popup_minsString240Interval in minutes between reboot prompts.
Desktop_reboot_show_popup_if_pending_reboot_not_rebooted_daysString1Displays 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_daysString30Shows 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_timeoutString600Timeout in seconds for the regular prompt.
Desktop_reboot_final_prompt_timeoutString900Time in seconds to wait before forcefully restarting the computer after the final prompt is missed.
Desktop_reboot_suppress_popup_time_windowsStringTime window(s) in 24-hour format (e.g., 1800-0900) during which prompts are suppressed.
Desktop_reboot_skip_weekendsBooleanFalseIf set, prevents reboot prompts from being shown on Saturdays and Sundays.
Reboot_if_not_logged_inBooleanTrueIf set, forcefully restarts the computer if no user is logged in when prompting conditions are met.
ForceBooleanFalseForcefully recreates the scheduled task if it already exists. Use this option when updating or modifying the task's arguments.
IconStringSpecify the icon URL for the reboot prompt. Example: https://content.provaltech.com/img/logo_r4.png
HeaderImageStringSpecify 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.
Image 8

StdErr
StdErr is not expected.

Attachments

Reboot Nag [Restart Alert] [Prompter]

Changelog

2026-03-23

  • Code Signed the PowerShell script.
  • Converted Icon and HeaderImage to run-time variables.
  • Updated .Net8 Desktop Runtime installation logic to install the latest available version.

2026-03-17

  • Initial version of the document