Z
Z
zencd2015-07-29 13:38:09
System administration
zencd, 2015-07-29 13:38:09

How to turn on Windows automatic lock after N minutes of inactivity through the registry?

Interested only in a software solution, through a reg-file or something like that.
Windows 7 Ultimate

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zencd, 2015-07-29
@zencd

As a result, the following BAT file does what it needs, I checked it. Only restart of the machine is required (log-off did not check). Source

:: включаем скринсейвер; 
Reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaveActive /t REG_SZ /d 1 /f

:: после скринсейвера - блокируем вход
Reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaverIsSecure /t REG_SZ /d 1 /f

:: таймаут скринсейвера в секундах
Reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaveTimeOut /t REG_SZ /d 300 /f

M
Max, 2015-07-29
@MaxDukov

here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question