When the System Properties window opens, switch to the Advanced tab and click the Settings button in the Enable and Restore column.
In the startup and recovery window that opens, clear the "Automatic Restart" item in the "System Failure" column, and then click "OK" to complete the setting.
In the running window that opens, enter "msconfig" and press Enter to enter the main interface of the system configuration utility.
In the system settings interface, switch to the General tab, check the diagnostic startup item, and click OK to restart the computer.
After the system restarts, re-enter the system configuration interface, switch to the service tab, check the item "Hide Windows service", check the item to be started with the system, and click OK to finish.
If the above methods still can't solve the problem of automatic restart of the computer, please make the following settings:
Enter the "Control Panel"-"Power Options" interface in turn, and click the "Select Power Button Function" button on the left.
In the new interface that opens, click the item "Change settings that are currently unavailable". As shown in the figure:
Finally, in the system settings interface, clear the "Enable Quick Start" item in the "Shutdown Settings" column, and then click the "Save Changes" button.