How to Automatically Lock Windows 10 After Inactivity

To lock Windows 10 automatically after you stop using it, set a screen saver timeout and enable On resume, display logon screen. Windows will show the sign-in screen when you return after the idle period you choose. This keeps your apps open; it does not shut down the PC or set its sleep timer.

Set Windows 10 to lock after a period of inactivity

  1. Open Start > Settings > Personalization > Lock screen.
  2. Scroll to Related settings, then select Screen saver settings. Windows opens the classic Screen Saver Settings dialog.
Windows 10 Settings on Personalization and Lock screen, with the Screen saver settings link near the bottom
The Screen saver settings link is at the bottom of the Lock screen page.
  1. Open the Screen saver menu. Select Blank if you want the screen to go blank, or choose another saver. Do not leave it set to (None), which turns the screen saver off.
Windows 10 Screen Saver Settings menu open with Blank highlighted
Choose Blank for a simple screen saver that can still trigger the return-to-sign-in prompt.
  1. In Wait, enter how many minutes of inactivity should pass before the screen saver starts. For example, enter 10 for ten minutes.
  2. Check On resume, display logon screen. Select Apply, then OK to save the change.
Screen Saver Settings with Blank selected, Wait set to 10 minutes, and On resume, display logon screen checked
The Wait field sets the idle interval; the checked box makes Windows show the sign-in screen when you return.

A Blank screen saver paints the display black; it does not power off the monitor. Use the separate Power & sleep controls if you want the monitor itself to turn off. The inactivity countdown restarts when Windows detects keyboard or mouse activity. A one-minute Wait interval is available, but choose a timeout that will not interrupt you during ordinary short pauses. A shorter interval limits how long an unattended desktop stays open; a longer one means fewer sign-in prompts.

Test the automatic lock

Leave the computer untouched until the selected interval passes. The screen saver should start. Move the mouse or press a key to return; Windows should display its sign-in screen. Sign in with the password, PIN, fingerprint, or other sign-in method already configured for your account. The screen saver setting does not create or change your credentials.

If Windows returns directly to the desktop, reopen Screen Saver Settings and confirm On resume, display logon screen is checked. Make sure your account has a sign-in method, too. A workplace or school administrator may manage these options, so a missing or disabled setting may require help from IT.

Screen saver locking and sleep are separate

This method uses the screen saver’s idle timer. It does not change when Windows turns off the display or puts the PC to sleep. If either power timer is shorter than the screen saver interval, the display may turn off or the PC may sleep first. Adjust Start > Settings > System > Power & sleep if you want to change those timers.

If you prefer the PC to sleep, also require sign-in after it wakes: go to Start > Settings > Accounts > Sign-in options, find Require sign-in, and choose the option that requires sign-in when the PC wakes from sleep. That setting protects wake-from-sleep; it does not set the screen saver’s inactivity interval.

Windows 10 Accounts sign-in options showing Require sign-in set to When PC wakes from sleep
Require sign-in after sleep is a separate control from the screen saver’s Wait timer.

Dynamic Lock is another option in Sign-in options. It uses a paired Bluetooth device moving out of range as its signal, rather than a fixed number of idle minutes, so it is not a replacement for a timed screen saver lock.

When this setting does not work

  • The screen saver never appears: Confirm the menu is not set to (None), shorten Wait for a quick test, and check whether display-off or sleep settings activate first.
  • The screen saver appears but the PC does not ask you to sign in: Recheck On resume, display logon screen and verify that Windows has a password, PIN, or Windows Hello sign-in method for your account.
  • The setting is missing or locked: A managed device policy can restrict screen saver settings. Contact the administrator instead of changing registry values.

For the current Windows steps, see Microsoft’s guide to configuring a screen saver, its device security guidance for sign-in after sleep, and the Windows sign-in options overview.

Leave a Comment

How to Schedule a Wallpaper Change in Windows 10

How to Schedule a Wallpaper Change in Windows 10

Use Windows 10’s built-in slideshow for interval rotation or schedule an exact daily wallpaper change with Task Scheduler and a short PowerShell script.

How to Change the New Message Notification Sound in Windows 10

How to Change the New Message Notification Sound in Windows 10

Choose a built-in alert tone or WAV file for Windows 10 message notifications, test the change, and troubleshoot apps that keep playing another sound.

How to Split the Screen Horizontally on Windows 10

How to Split the Screen Horizontally on Windows 10

Arrange Windows 10 apps in top-and-bottom rows with the taskbar’s Show windows stacked command, or create a reusable two-zone layout with PowerToys FancyZones.

How to Move Your Cursor Between Different-Resolution Monitors in Windows 10

How to Move Your Cursor Between Different-Resolution Monitors in Windows 10

Keep each display at its recommended resolution, arrange Windows 10 monitors accurately, and use MouseUnSnag to cross mismatched edges and sticky corners.

How to Check a Wi-Fi Network’s Security Type on Windows 10

How to Check a Wi-Fi Network’s Security Type on Windows 10

Find whether your connected Wi-Fi uses WPA2, WPA3, or an older security mode in Windows 10 with Settings, Command Prompt, or Control Panel.

How to Automatically Lock Windows 10 After Inactivity

How to Automatically Lock Windows 10 After Inactivity

Automatically lock Windows 10 after inactivity with a screen saver timer and sign-in prompt, then check how sleep settings affect the result.

How to Add a Cursor Highlighter on Windows 10

How to Add a Cursor Highlighter on Windows 10

Add a persistent colored ring around your Windows 10 mouse pointer with PenAttention, or use built-in pointer tools and PowerToys for temporary highlights.

How to Pin the Game Bar CPU, GPU, and RAM Overlay on Top in Windows 10

How to Pin the Game Bar CPU, GPU, and RAM Overlay on Top in Windows 10

Keep the Xbox Game Bar Performance widget visible over other windows on Windows 10, with CPU, GPU, and RAM readings you can position and unpin.

How to Record Multiple Screens at Once on Windows 10 with OBS

How to Record Multiple Screens at Once on Windows 10 with OBS

Capture two or more Windows 10 displays in one OBS video. Add a Display Capture source for each monitor, fit the canvas, and test the layout.

How to Generate a GUID in PowerShell on Windows 10

How to Generate a GUID in PowerShell on Windows 10

Create a GUID on Windows 10 with [guid]::NewGuid() or New-Guid, reuse it in a script, and learn when to look up an existing identifier.