You can password protection by setting the data in ScreenSaverIsSecure to 1. Reg add 'HKEY_CURRENT_USER\Control Panel\Desktop' /v ScreenSaveTimeOut /t REG_SZ /d 0 /f To enable or disable password protection when the session is resumed For example if you want to set the time out to 20 minutes you need to change the value of this registry key to 1200.įrom command line you can run the below command to change screen saver timeout limit. Set the data in the registry value ScreenSaveTimeOut to the timeout limit in seconds. Reg add 'HKEY_CURRENT_USER\Control Panel\Desktop' /v ScreenSaveActive /t REG_SZ /d 1 /f To change timeout for activating the screen saver