Prevent Screen Saver Password Bypass in Regedit
This guide explains how to use the Windows Registry Editor (Regedit) to enforce screen saver password protection and prevent local users from bypassing or modifying lock requirements. By applying these registry policies under the system-wide Machine hive, local users without administrative rights will be forced into an automated, password-protected lock state after a specified period of inactivity.
Step 1: Open the Registry Editor
- Press
Win + Ron your keyboard to open the Run dialog box. - Type
regeditand press Enter (or click OK). - If prompted by User Account Control (UAC), click Yes to grant administrative permissions.
Step 2: Navigate to the Control Panel Policy Key
Navigate through the left sidebar to the following path to apply the policy globally for all local users:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Control Panel\Desktop
Note: If the
Control PanelorDesktopkeys do not exist underWindows, right-click the parent key, select New > Key, and create them with the exact names shown above.
Step 3: Create and Configure Required Registry Values
To enforce the screen saver password and prevent bypass, create four
String Value (REG_SZ) entries inside the
Desktop key:
- Enforce Password Protection:
- Right-click an empty area in the right pane, select New >
String Value, and name it
ScreenSaverIsSecure. - Double-click
ScreenSaverIsSecureand set its Value data to1. - Purpose: Requires the user to enter their account password to unlock the screen when returning.
- Right-click an empty area in the right pane, select New >
String Value, and name it
- Force the Screen Saver to be Active:
- Right-click, select New > String Value, and name
it
ScreenSaveActive. - Double-click
ScreenSaveActiveand set its Value data to1. - Purpose: Ensures the screen saver cannot be turned off by local users.
- Right-click, select New > String Value, and name
it
- Specify the Screen Saver Executable:
- Right-click, select New > String Value, and name
it
SCRNSAVE.EXE. - Double-click
SCRNSAVE.EXEand set its Value data toC:\Windows\System32\scrnsave.scr(or another valid.scrpath). - Purpose: Defines a mandatory screen saver file for the system to execute.
- Right-click, select New > String Value, and name
it
- Set the Timeout Duration:
- Right-click, select New > String Value, and name
it
ScreenSaveTimeOut. - Double-click
ScreenSaveTimeOutand set its Value data to the desired timeout in seconds (for example,600for 10 minutes or900for 15 minutes). - Purpose: Establishes how long the system must remain idle before the screen saver and lock engage.
- Right-click, select New > String Value, and name
it
Step 4: Apply the Changes
- Close the Registry Editor.
- Restart your computer, or sign out and sign back in, to apply the new registry rules across all local accounts.