You get a notification when Windows plans on restarting somewhere in the future. I just click on it and manually set the restart date 1 week in the future. That's it.
I'm also leaving the computer on for weeks and never had an unexpected reboot with this protocol.