Leaving your computer unlocked in a busy office, a college dorm, or a coffee shop is a massive security risk. Anyone walking past can read your private emails, access your banking websites, or delete your files. While you should always press Windows Key + L to manually lock your screen when you walk away, it is easy to forget. To guarantee your privacy, you should configure Windows 11 to automatically lock itself the moment you leave it idle for too long.
How to Set the Inactivity Timer
Windows 11 ties the automatic locking mechanism directly to your screen timeout settings.
- Open the Settings app by pressing Windows Key + I on your keyboard.
- In the left-hand sidebar, click on Accounts.
- Scroll down the main window and click on Sign-in options.
- Scroll down to the “Additional settings” section and look for the option labelled If you’ve been away, when should Windows require you to sign in again?
- Click the dropdown menu next to it and select When PC wakes up from sleep.
Now that Windows knows to demand a password upon waking, you just need to tell it when to go to sleep.
- Go back to the main System tab in the left-hand sidebar.
- Click on Power & battery (or just Power on a desktop PC).
- Expand the Screen and sleep section.
- Look for the setting labelled On battery power, put my device to sleep after (and the corresponding “Plugged in” setting).
- Change the dropdown timer to a secure timeframe, such as 3 minutes or 5 minutes.
The change is immediate. If you walk away from your desk and do not touch the mouse or keyboard for exactly 5 minutes, your screen will instantly go black. The moment you wiggle the mouse to wake it up, Windows 11 will display the lock screen, forcing you (or any intruder) to enter your PIN or use Windows Hello facial recognition to regain access.