Hello.
When your computer keeps restarting, you can view the Windows event log to diagnose the problem. Event logs record system events and error messages that can help you identify and resolve issues. Here are the steps to view the event logs:
Use the Windows + R shortcut to open the Run dialog box.
Type eventvwr.msc and press enter, which will open the event viewer.
In the Event Viewer, expand Windows Logs on the left.
Select the "System" category, where system-related events such as reboots and errors are logged.
If the number of logs is large, you can use the filtering feature. Click "Filter Current Logs" on the right and enter a specific event ID, such as 1074, which is related to system shutdown and restart.
In the event properties, you can find the details of the event, including the error code and description, which can help you determine the reason for the restart.
Best Regards,
Hania Lian
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.