PDA

View Full Version : Force computer to lock session after x minutes (WNT)



t3k
04-23-2003, 01:42 AM
How can I force a station to lock after 15 minutes of inactivity? In Windows2000 I can do it through local policy but I don't know how to to it in NT4 Workstation.
If there's no way, Can I force the screensaver to start after 15 minutes and password protected?

Thank you.

t3k

jdharm
05-01-2003, 12:10 PM
Use a *.reg file at logon or use a group policy to set the screen saver.

*.reg info:

[HKEY_CURRENT_USER\Control Panel\Desktop]
"ScreenSaveActive"="1"
"ScreenSaveIsSecure"="1"
"ScreenSaveTimeOut"="<time in seconds>"
"SCRNSAVE.EXE"="<screensaver name>.scr"


Or you could use <a target="_blank" href=http://www.winability.com/activesaver/>THIS APPLICATION</a>. A useful little utility that you might use to solve your problem. I use it in conjunction with the above *.reg information (or following policy template) to refresh my library machines (with a forced standard account login) after 10 minutes of inactivity, but it is versitile enough for may other possible uses.

You could use the System Policy Editor (Poledit.exe) to set group policies. If you do you could use the following template:

(paste into Notepad and save as &lt;filename&gt;.adm)


CLASS USER

CATEGORY !!Screen_Saver_Policy
POLICY !!Screen_Saver
KEYNAME "Control Panel\Desktop"
PART !!Screen_Saver_Location EDITTEXT
DEFAULT !!DEF_Screen_Saver
VALUENAME SCRNSAVE.EXE
END PART
END POLICY
POLICY !!ENABLE_SCREEN_SAVER
KEYNAME "Control Panel\Desktop"
VALUENAME ScreenSaveActive
VALUEON "1" VALUEOFF "0"
END POLICY
POLICY !!ENABLE_Password
KEYNAME "Control Panel\Desktop"
VALUENAME ScreenSaverIsSecure
VALUEON "1" VALUEOFF "0"
END POLICY
POLICY !!Screensaver_timeout
KEYNAME "Control Panel\Desktop"
PART !!Timout EDITTEXT
VALUENAME ScreenSaveTimeOut
REQUIRED
END PART
END POLICY
END CATEGORY

[strings]
Screen_Saver_Policy="Screen Saver Policies"
Screen_Saver="Screen Saver"
ENABLE_SCREEN_SAVER="Enable Screen Saver"
Screen_Saver_Location="Enter the location of the Screen Saver"
DEF_Screen_Saver="%SYSTEMROOT%\system32\active~1.scr"
ENABLE_Password=Enable Password
Screensaver_timeout="Screensaver Timeout"
Timout="Timeout, in seconds"


Josh
<a target="_blank" href=http://www.jdharm.net>www.jdharm.net</a>