Setting Active Hours in Windows 11/10 will ensure that your computer will not restart. Here's how to configure Active Hours via Settings, Registry & GPEDIT.