Restart Device
Overview
Tests if a restart is necessary due to too long device uptime, or pending patch installation, and based on provided input configures restart of the target device. The campaign is displayed to enable user immediate restart or postpone until the next script execution. After the restart, previously opened user's applications are restored.
Input parameters
Parameter | Description | Value |
---|---|---|
TestPendingRestart | Controls if the script should verify if the device is pending restart due to recently installed patch. A positive result will lead to trying to restart the device following the options selected on the other inputs. |
|
CampaignId | Campaign GUID asking the end-user for restart. The end-user needs to respond NOW to trigger the restart. If not, the restart is postponed. |
|
ShowCampaign | Determines circumstances the campaign is displayed to the end-user. The campaign will give the end-user the option to postpone the restart or execute it now. |
|
NumberOfDaysSinceLastReboot | Maximum number of days allowed for the device to be running without a restart. A day is 24 hours therefore, forced restart is triggered only if the remote action detects that end-user postponed restarting more than 24 hours ago. |
|
PostponeGracePeriodInDays | Maximum number of days that end-user can postpone restart when ShowCampaign is DuringGracePeriod. This input will only take effect if the remote action is executed more than once. |
|
RestartDelayInSeconds | Delay time between initiating restart and it's execution if restart conditions have been met. |
|
Recommendations
Recommended timeout: 720 Recommended way of use: Schedule the remote action to be executed once per day.
IMPORTANT: If you don't execute the RA periodically, PostponeGracePeriodInDays won't work as designed.
Common use cases
I want to keep the company devices restarted at least once each 15 days but I don't want to do it without the consent of the end-user
Recommended Inputs
TestPendingRestart: false
CampaignId: 4fc67441-e4e3-4905-b533-620eb4083c2b
ShowCampaign: Always
NumberOfDaysSinceLastReboot: 15
PostponeGracePeriodInDays: 7 (this value won't affect the execution but needs to be an integer between 1 and 30)
RestartDelayInSeconds: 300
I want to enforce that the company devices have the latest Windows patch or restart devices that have been running more than 30 days. I want to let the end-user 3 days to restart in their own terms but if they don't, force the restart either way.
Recommended Inputs
TestPendingRestart: true
CampaignId: 4fc67441-e4e3-4905-b533-620eb4083c2b
ShowCampaign: DuringGracePeriod
NumberOfDaysSinceLastReboot: 30
PostponeGracePeriodInDays: 3
RestartDelayInSeconds: 300
I want the company devices to be restarted when their uptime is bigger than a week or when they have pending Windows patches. I want to ask one time but if they ignore the notification, the restart should be forced.
Recommended Inputs
TestPendingRestart: true
CampaignId: 4fc67441-e4e3-4905-b533-620eb4083c2b
ShowCampaign: OnlyFirstExecution
NumberOfDaysSinceLastReboot: 7
PostponeGracePeriodInDays: 7 (this value won't affect the execution but needs to be an integer between 1 and 30)
RestartDelayInSeconds: 300
Other values
End-user execution: Current interactive user
Compatibility: Windows 10 and Windows 7
Last updated