How to configure Windows to lock screen on sleep/wake but not on display-off

Solution 1:

Do it this way:

  • In Start > Change screen saver, set the screen saver to "None"
  • In Start > Power Options > Change plan settings, set
    • Turn off the display to, say, "5 minutes"
    • Put the computer to sleep to "1 hour"
  • Start Task Scheduler and create a new task, as follows:
    • General: Give it a name; check "Run only when user is logged on"
    • Trigger: "On an event"; Custom; New Event Filter, defined as Level: Information; Source: Power-Troubleshooter; Event id:1
    • Action: Start a program; Program: rundll32.exe; Arguments: user32.dll,LockWorkStation

Solution 2:

Enabling and setting System Unattended Sleep Timeout to match your desired sleep timeout should allow Display off to function as you desire. (see first answer) To enable, edit the Attributes value under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0 Regedit

Then, Advanced Power Options will show: enter image description here