Windows 11 automatically locks to protect your files when inactive. You can adjust this setting through the Local Security Policy on Pro editions or by editing the Registry on Home editions. Set the desired inactivity time in seconds or enter 0 to disable automatic locking, allowing customized control over your PC’s security.