To prevent Windows 11 or 10 from locking itself, first disable Dynamic Lock and the "On Resume, Display Logon Screen" option in screensaver settings. Then, on Windows 11, head into Settings > Accounts ...
Fresh options in Windows 11 25H2 let you get fancy with the screen that appears before you log in to your PC and after you ...