The Enable forced button/lid shutdown power plan setting in Power Options specifies the type of system shutdown that occurs when the lid is closed or the power button is pressed if the Lid close action and/or Power button action is set to Shut down.
When Enable forced button/lid shutdown is turned off (default), a normal full shutdown of the computer is performed.
When Enable forced button/lid shutdown is turned on, a forced shutdown of the computer is performed. This forces running apps to close, and then performs a full shutdown of the computer. Any open documents might not be saved and data loss could occur.
This tutorial will show you how to turn on or off “Enable forced button/lid shutdown” in Windows 11 and Windows 10.