If your Windows 11 laptop shuts down without a low battery warning, check notification settings, enable low battery alerts in Power Options, apply energy recommendations, and assess battery health.
It is the first thing you can try to bypass the problem temporarily. If one or more users are already logged in, you must shut down your PC again. You can restart your computer and then shut it down.
Reinstalling Windows is disruptive. Run these built-in Command Prompt repairs in the right order to fix disk, system files, ...