script to check if an endpoint need to be rebooted or not and schedule reboot'

Regarding this already made script - What exactly is this script checking for before scheduling the reboot? Is there a script to run which just schedules to restart at a particular time?

Hi @evoevoevo
That script is designed mainly to support (or follow up to) manual patching of Windows Updates through the Patch Management. As we all know, some Windows updates require a PC restart to complete the update process.

Is there a script to run which just schedules to restart at a particular time?

Yes, there are some scripts available already.