Auto Lock Windows 11 After Inactivity, You can set the lock timer through screen saver settings or power settings.