Windows Locks Workstation After Inactivity
After a certain period of inactivity, Windows Vista and above locks the workstation, requiring the user to enter their password. However, the machine is not configured to suspend/sleep, and there is no screen-saver.
This can happen if the screen-saver option to show the logon screen is enabled, even if no screen-saver is enabled.
To achieve this result via a script or from the command-line, use:
reg add "HKCU\Control Panel\Desktop" /v ScreenSaveActive /d 0 /t REG_DWORD /f
reg add "HKCU\Control Panel\Desktop" /v ScreenSaveTimeOut /d 3600 /t REG_DWORD /f
reg add "HKCU\Control Panel\Desktop" /v ScreenSaverIsSecure /d 0 /t REG_DWORD /f