Windows Locks Workstation After InactivityAfter 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 fix: - Open Control Panel, Personalisation, Screen Saver.
- On Windows Vista, the option to disable the logon screen is only available to change if a screen saver is selected.
Thus, change the screen saver from (None) to any other screen saver. The option On resume, display logon screen is now available. - Untick On resume, display logon screen.
- Click Apply.
- On Windows Vista, change the screen saver back to (None).
- Click OK.
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 |