Set the computer to shut down automatically
1. Windows+R open the run command box
2. Enter "Shutdown.exe -s -t 3600" in the run command box, here it means that it will automatically shut down after 60 minutes, and "3600" means 60 minutes. After the setting is completed, a dialog box will pop up with a countdown to shutdown. As long as it takes to shut down, modify "3600" to the number of seconds required to shut down, 1 hour = 3600 seconds, you can convert it into seconds according to the hours you need.
Cancel setting the computer to shut down automatically
1. Windows+R open the run command box
2. You can enter "shutdown -a" in the run command box.