requires [PowerShell 7](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4) The script will create a daily scheduled task at 8am to check the uptime and schedule a reboot. After this is created, open `taskschd.msc`, go into the settings for the `uptime reboot` task, and set it like this: !['Run whether user is logged in or not', 'Do not store password'](https://s3.aly.pet/ss/Screenshot%202023-11-27%20085124.png)