WiseCleaner Think Tank

Encounter difficult computer problems?
All about maintenance and optimization of your Windows System.

Home > Think Tank > How to Automatically Lock Your Windows 11 PC After Inactivity

How to Automatically Lock Your Windows 11 PC After Inactivity

Jun 10, 2025

Want to know how to automatically lock your Windows 11 computer after a period of inactivity? Enabling the auto lock feature is a simple yet effective way to secure your data and prevent unauthorized access. Whether you’re working in an office, at home, or in a public environment, setting up auto lock ensures your PC is protected when left unattended. In this guide, you’ll learn three easy ways to set up the auto lock feature in Windows 11, including using system settings, Group Policy Editor, and the Registry Editor.

Method 1: Using Settings

This is the most straightforward and user-friendly method, suitable for most users regardless of Windows edition.

Step 1. Open Screen Saver Settings

Press Windows + S, type "Change screen saver", and select the result.

Step 2: Configure the Screen Saver

Configure the Screen Saver

Method 2: Using Group Policy Editor

This method is more advanced and is available only on Windows 11 Pro, Enterprise, and Education editions.

Step 1. Open Group Policy Editor

Press Win + R, type gpedit.msc, and press Enter to launch the Local Group Policy Editor.

Step 2. Navigate to Security Options

In the left panel, go to:

Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options

Step 3. Configure Inactivity Timeout

Locate and double-click Interactive logon

set the number of seconds

Method 3: Using Registry Editor

Editing the Windows Registry allows for deeper customization, especially for users who do not have access to Group Policy settings (e.g., Home edition users).

Step 1. Open Registry Editor

Press Win + R, type regedit, and press Enter to launch the Registry Editor.

Step 2. Navigate to System Policies

Go to the following path:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

Step 3. Create and Modify Inactivity Setting

Create Inactivity Setting
enter the desired timeout

Conclusion

Enabling auto-lock in Windows 11 is a smart step toward improving data privacy and system security. With various methods available—from simple settings tweaks to advanced policies—users can choose the one that best fits their environment and needs.

10