Hello
Thank you for posting in Microsoft Community forum.
- Under what circumstances did the laptop freeze? During normal use, or when opening a program or game?
- When the screen is blue, what is the blue screen code at the bottom of the screen?
If the system automatically restarts before you have time to check the blue screen code, it is recommended to disable the automatic restart function when the system fails, and then tell us the specific blue screen error.
To disable automatic restart on system failure, you can follow these steps:
Using Startup and Recovery Settings:
Press WIN + R to open the Run dialog.
Type sysdm.cpl and press Enter to open System Properties.
Go to the Advanced tab and click on Settings under Startup and Recovery.
In the System failure section, uncheck the Automatically restart option.
Click OK to save your changes.
Using Command Prompt with Admin Level Privileges:
Press WIN + X and select Command Prompt (Admin) or search for cmd, right-click on Command Prompt, and select Run as Administrator.
Type the following command to disable automatic restart on system failure:
wmic recoveros set AutoReboot = False
To enable it again, use:
wmic recoveros set AutoReboot = True
Type exit and press Enter to close the Command Prompt. Restart your computer for the changes to take effect.
Using the Registry Editor:
Press WIN + R to open the Run dialog.
Type regedit and press Enter to open the Registry Editor.
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl.
Double-click on AutoReboot and set its value to 0.
Click OK and restart your computer for the changes to take effect.
Best Regards,
Wesley Li