AutomoxAutomox

Best method to force server reboots every month at end of maintenance window?

jbh
December 6, 2021 at 4:55 pm UTC
#reboot

We have >1K servers that are distributed among ~50 different groups and policies that patch according to specific maintenance windows based on the application they run.

Our policies allow the server to reboot if the patch being applied requires it, but I’d like ALL the servers to reboot at the end of the monthly maintenance window regardless of installing any patches.

What’s the recommended way to implement this?

This discussion is archived and closed to replies. Continue it in the Automox Community Slack.

Discuss on Slack

Replies (4)

jbhDecember 8, 2021
#1

Nothing?

it_stuckDecember 10, 2021
#2

You could copy this worklet for rebooting: Worklet Details: Targeted Reboot within Timeframe

Or write your own worklet with “Restart-Computer -Force” and use the scheduler to reboot on your selected schedule

MarkH-AutomoxDecember 10, 2021
#3

I went through this recently with another client and decided the best (most simple approach) is either putting Exit 1 in the Eval, and scheduling the policy to reboot with ‘Restart-computer -Force’ as ‘it_stuck’ has suggested, or by putting ‘exit 0’ in the Remediation code and just using the reboot computer feature below the schedule.

jbhDecember 16, 2021
#4

Thank you both for the suggestions.  I will take a look at them and do some testing.  Wasn’t sure if there was an “official” or generally accepted ‘best practice’ way to accomplish it.