Skip to main content

User Prompt for Reboot

Purpose

The purpose of this solution is to provide the client with the ability to have Automate prompt the end user to reboot the machine and ensure that the machine eventually gets rebooted (either forcefully or voluntarily by the end user).

Update Notice: 16-December-2024

A new Client, Location, and Computer-Level Exclusion EDF Disable Reboot Prompt has been introduced. Flagging the EDF will exclude the machines at the respective level.

Steps to import the updates:

Image

Update Notice: 06-June-2024

If the proval_RebootPromptWhenPendingReboot system property is set to 1 and the computer has a reboot pending flag, but the Suppress Reboot policy is applied by the patch manager, and the pending reboot flag was set due to a patch job, the machine will be excluded from the script's functionality. Instead, the prompts and reboot will be managed by Automate's built-in Suppress Reboot policy. This may result in inconsistently connected machines not getting a proper reboot.

Associated Content

ContentTypeFunction
Reboot Pending [Prompt]Internal MonitorTo monitor for machines the client decides need to be rebooted and issue a script to prompt the user.
User Prompt - RebootScriptTo physically handle the reboot prompting and execution.
Reset Reboot Pending EDFsScriptTo clear all flags indicating the machine needs a reboot so they can be set again later.
Reset Reboot Pending EDFsInternal MonitorThis internal monitor is designed to detect the agents whose reboot was done by the script User Prompt - Reboot. It detects the agents and triggers the script Reset Reboot Pending EDFs to clear the EDFs so they can be re-triggered at another time.
Machines with Login Bug IssueInternal MonitorThis internal monitor detects the agents with Login Bug Issues that have not been rebooted for more than 7 days since detection.
△ Custom - Autofix - Prompt for Reboot with Forced RebootAlert TemplateThis template is used with the monitor Reboot Pending [Prompt] to schedule the autofix script User Prompt - Reboot.
△ Custom - Autofix - Reset Reboot Pending EDFsAlert TemplateThis template is used with the monitor Reset Reboot Pending EDFs to schedule the autofix script Reset Reboot Pending EDFs.
△ Custom - Ticket Creation - ComputerAlert TemplateThis template is used with the monitor Machines with Login Bug Issue.
User Prompt - Reboot [Audit]DataviewThis dataview is designed to track the workings of the User Prompt for the Reboot solution.

Implementation

Updating Process:

  • Remove the monitor 'ProVal - Production - Reboot Pending [Prompt]' (if it exists)
    • Take note of any exclusions made to this monitor; however, there will likely be no customizations to it.
  • Remove the monitor Reset Reboot Pending EDFs (if it exists)
  • Remove the Alert Template '~Autofix - Prompt for Reboot and Force' (or whatever is assigned to the monitor presently; we will be importing a new alert template with this solution).
    • If you cannot find any alert templates configured, skip over this step.
  • Update the script User Prompt - Reboot
  • Update the script Reset Reboot Pending EDFs
  • Import both alert templates '△ Custom - Autofix - Reset Reboot Pending EDFs' and '△ Custom - Autofix - Prompt for Reboot with Forced Reboot'
  • Delete the Reset Reboot Pending EDFs Script Schedule on the All Agents group

Image

  • Proceed through the Fresh Install Process steps.

Fresh Install Process:

  1. Import both scripts outlined in this document (ProSync Plugin)
  2. Import all the monitors outlined in this document (ProSync Plugin)
  3. Import all the alert templates outlined in this document (ProSync Plugin)
  4. Import the dataview outlined in this document (ProSync Plugin)

Configuration Steps:

  1. Set the correct alert templates to the Disabled monitors

Image

  1. Run the script User Prompt - Reboot once on any machine with the user parameter SetEnvironment set to 1:

Image

Running the script with this parameter will import the properties below with default values and also import the EDFs as mentioned below:

  • proval_RebootForceTimeDelayMin - Default Setting [5]
  • proval_RebootPromptWhenPendingReboot - Default Setting [0]
  • proval_RebootPromptUptimeDays - Default Setting [0]
  • proval_RebootPromptMSG - Default Setting [Your computer is currently in need of a reboot.]
  • proval_RebootPromptDurBetweenPrompt - Default Setting [4]
  • proval_RebootPromptCount - Default Setting [4]
  • Proval_RebootPromptUsePrompter - Default Setting [0]

The EDFs imported are:

  1. Last Prompted - Text Box

  2. Times Prompted - Text Box

  3. Pending Reboot - Checkbox

  4. Before enabling the monitors, validate that the monitor will return results when checking the 'Pending Reboot' EDF. Simply pick a random workstation that is online, check the 'Pending Reboot' EDF, and save it:

Image

  1. Then open the Disabled Monitor 'ProVal - Production - Reboot Pending [Prompt]' and validate that the new machine appears in the results:

Image

NOTE: If the count is more than 1, then settings are changed from their defaults, and the consultant should weigh in on whether we should enable the monitors or not.

  1. After confirming that, you can uncheck the pending reboot box from that machine and fully enable all the monitors.
    • It is recommended to keep the monitor targeting globally to ensure the EDFs, when checked, always prompt the user; however, the client may request for the monitor to be more limited, and in this case, you can enable the monitor specifically for certain groups.

Prompter Prompt Examples

Image

Icon and header images can be set by https://redirhostname/WCC2/Utilities/HeaderImage

At the final prompt, you will receive this popup through Windows FIRST:

Image

Then this will pop up, explaining the reboot:

Image

Automate Prompt Examples

Image

Image

Image

Image

At the final prompt, you will receive this popup through Windows FIRST:

Image

Then this will pop up, explaining the reboot:

Image

EDF Examples

  • Pending Reboot [Checkbox - Manually Editable]
    • Image
  • Last Prompted [Text Field - Non Editable]
    • Image
  • Times Prompted [Text Field - Non Editable]
    • Image

Customizations

PropertyDescriptionDefault Setting
System Property: proval_RebootPromptCountHow many times the user will be prompted4
System Property: proval_RebootPromptDurBetweenPromptAmount of time in hours between prompts4
System Property: proval_RebootPromptMSGThe default message for the reboot prompt'Your computer is currently in need of a reboot.'
System Property: proval_RebootPromptUptimeDaysAutomatically sets the reboot prompt flag after X days of machine uptime0 (Disabled)
System Property: proval_RebootPromptWhenPendingRebootToggles this solution on the Windows embedded reboot flag0 (Disabled)
System Property: proval_RebootForceTimeDelayMinAdjusts the time delay on the forced reboot in minutes5
System Property: Proval_RebootPromptUsePrompterUse Prompter instead of Automate's default prompts/messages0 (Disabled)

Exclusion EDFs

NameTypeSectionLevelDescription
Disable Reboot PromptCheckboxExclusionsClientFlag this EDF to exclude the client from the solution.
Disable Reboot PromptCheckboxExclusionsLocationFlag this EDF to exclude the location from the solution.
Disable Reboot PromptCheckboxExclusionsComputerFlag this EDF to exclude the computer from the solution.

FAQs

Q: What happens if a user ignores the reboot prompt completely?

If the user does not provide any input, the prompt will time out without taking any action. However, if the system exceeds the allowed defer count or the defer period expires, a forced reboot will occur 5 minutes after the final prompt. Timeout and interval values can be customized using system properties.

Q: What controls the delay before a forced reboot occurs after the final prompt?

The delay before a forced reboot is managed by the system property proval_RebootForceTimeDelayMin. The default delay is 5 minutes, but this can be increased or decreased based on operational requirements.

Q: Will the reboot prompt appear if the device is idle but the user is logged in?

No. The monitor only runs the script on devices that have been active within the last 5 minutes. If the system is idle or sleeping, no prompt will be displayed until the user becomes active again.

Q: How does the soltuion handles a sleeping device?

If a user is logged in but the computer is in sleep mode, the solution takes no action, as the device is considered idle. If no user is logged in, the script will reboot the computer automatically. Reboot prompts are sent only when a user is logged in and the device is actively in use.

Q: What happens if no user is logged into the device?

If no user is logged in, the script will reboot the computer automatically without displaying a prompt.

Q: Can the reboot prompt be triggered immediately after a reboot?

Yes, depending on configuration. If the system property proval_RebootPromptWhenPendingReboot is enabled, the prompt will appear whenever a pending reboot is detected, regardless of uptime. If disabled, prompts are delayed until the uptime exceeds the threshold defined in proval_RebootPromptUptimeDays.

Q: Does the solution track why a reboot flag was set?

No. The solution cannot identify the source of the reboot flag. However, if the reboot flag is set by Patch Manager and a Suppress Reboot policy is applied, the device will be skipped so Patch Manager can manage the reboot process.

Q: How does the solution prevent false reboot prompts when a device comes back online?

If a device comes online with low uptime (under one hour) and still has the Pending Reboot EDF set, the monitor "ProVal - Production - Reset Reboot Pending EDFs" clears the flag automatically. This prevents unnecessary or incorrect prompts.

Q: Can I update the logo of the prompt?

Yes. You can update the prompt logo by placing the required header image and icon image in the LTShare under the Utilities folder. The prompter will automatically use these images when displaying the prompt. Or you can provide a public URL of your desired image and save it in the global parameters of the script.

Q: Can specific clients, locations, or computers be excluded from reboot prompting?

Yes. The solution includes Exclusion EDFs at the Client, Location, and Computer levels. When the "Disable Reboot Prompt" EDF is checked at any of these levels, the device(s) will be excluded from reboot prompting.

Q: How can administrators track which devices have received reboot prompts?

The "User Prompt – Reboot [Audit]" dataview provides visibility into prompt activity, including when devices were prompted and how many times prompts were displayed. This helps with auditing and troubleshooting.

Q: Can the default reboot prompt message be customized?

Yes. You can modify the prompt text using the system property proval_RebootPromptMSG. This allows organizations to display custom messaging that aligns with internal standards or user communication policies.

Q: Is there a way to manually choose which device should receive a reboot prompt?

Yes. You can manually enable the computer‑level EDF Pending Reboot. Once enabled, the reboot prompt will be triggered for that device based on the configurations defined in the system properties.

Q: Can I customize the prompt intervals, message, or other settings on a per‑client basis?

No. This solution supports only global customization through system properties. While you cannot configure different intervals, messages, or behaviors per client, you can exclude specific clients, locations, or individual computers from the solution using the available exclusion EDFs.

Q: Can I run the script manually on a computer to trigger a reboot prompt?

This script is designed to run only when triggered by Reboot Pending [Prompt]. Manual running of this script will output a log entry into the Scripts tab stating, "This script is designed to run only when triggered by a monitor and should not be run manually. Exiting."

Changelog

2026-04-30

  • Added FAQs

2025-04-10

  • Initial version of the document