How to schedule a device reboot?Solved

Participant
Discussion
2 years ago

Hello there! I need some guidance…

We have set up satellite offices around the country for employees working remotely. Employees can come in any time and access workstations for priority tasks. Around 15-20 iMacs and Windows Desktops are deployed for this purpose.

How do we schedule reboots on these devices based on downtime?

Replies (5)

Marked SolutionPending Review
Participant
2 years ago
Marked SolutionPending Review

Hey @zOlA Kudos on embracing hybrid /remote work! Pretty sure there are custom scripts to schedule reboots for macs…

Found it: https://www.hexnode.com/mobile-device-management/help/script-to-schedule-restart-on-mac/

You can set the exact time in the 24-hour notation for a restart. the command will reboot the devices at the specified time. The command may fail if the specified time is already passed on the target devices.

For Windows, things are different…

https://www.hexnode.com/mobile-device-management/help/deploying-script-to-restart-windows-10-devices-remotely/

You can only set a delay in seconds from when the command is executed. I guess you could work around that.

Windows will display a prompt notifying the device will restart in a moment when the command is executed.

Marked SolutionPending Review
Participant
2 years ago
Marked SolutionPending Review

You could use Task Scheduler to schedule the restart script: https://answers.microsoft.com/en-us/windows/forum/all/how-can-i-make-my-computer-restart-automatically/ef980419-84b6-4a96-ac64-2c1e4c5ac9ea

 

That should simplify things for you, @zOlA

P.S don’t forget to modify conditions to start the task when the device is not on AC power.

Marked SolutionPending Review
Participant
2 years ago
Marked SolutionPending Review

Thanks, @Abram and @Abel! I have a question, though…

Say we schedule a reboot at midnight, and the device is shut down at 11 pm, will the device reboot when a user turns it back on?

Marked SolutionPending Review
Participant
2 years ago
Marked SolutionPending Review

I don’t think so; it seems unlikely.

Marked SolutionPending Review
Participant
2 years ago
Marked SolutionPending Review

No @zOlA, target devices will not reboot when turned on again once the scheduled time passes.