Page 1 of 1 1
Topic Options
#19480 - 2002-04-03 11:36 PM WinExit.SCR via logon script. HOW ???
rismo Offline
Fresh Scripter

Registered: 2002-03-22
Posts: 5
How do I push down to my clients through a logon script the WinExit screen saver with default setting? Can I maybe just add certian reg keys and values? If so what are they? I was able to disable the screen saver tab, in the display options, through the logon script via reg keys. I have absolutely no idea how. If someone could point me to some resources or toss an idea my way I would greatly appreciate it. Thanks.
Top
#19481 - 2002-04-03 11:53 PM Re: WinExit.SCR via logon script. HOW ???
New Mexico Mark Offline
Hey THIS is FUN
****

Registered: 2002-01-03
Posts: 223
Loc: Columbia, SC
This may not entirely answer your question, but I'm between meetings (yuck). Hopefully it will get you on the right track.

Here is the relevant code that we use to enforce screen saver policy here. It doesn't force a user to a particular screen saver, but I think it will help.

code:
  
:SCREEN_SAVER
; Ensure screen saver is installed, set for < 15 minutes, and pwd protected
; Is screen saver active? If not, set active.
WriteHeader('SCREEN_SAVER')
$sRegSubKey = 'HKEY_USERS\@SID\Control Panel\Desktop'
$sRegEntry = 'ScreenSaveActive'
IF Val(ReadValue($sRegSubKey,$sRegEntry)) <> 1
$RC = WriteValue($sRegSubKey,$sRegEntry,'1','REG_SZ')
Write( 'UCC - Enabled Screen Saver.',1)
$iExCode = $iExCode | 4
ELSE
Write('INF - Screen saver already enabled.',1)
ENDIF
; Is the timeout more than 15 minutes? If so, set for fifteen-minute timeout.
$sRegEntry = 'ScreenSaveTimeOut'
$Old = Val(ReadValue($sRegSubKey,$sRegEntry)) / 60
IF $Old > 15
$RC = WriteValue($sRegSubKey,$sRegEntry,'900','REG_SZ')
Write( 'UCC - Changed screen saver timeout from $Old to 15 min.',1)
$iExCode = $iExCode | 4
ELSE
Write('INF - Screen saver timeout OK. Value is: ' + $Old + ' minutes.',1)
ENDIF
; Is the screen saver password protected? If not, enable this feature.
$sRegEntry = 'ScreenSaverIsSecure'
IF Val(ReadValue($sRegSubKey,$sRegEntry)) <> 1
$RC = WriteValue($sRegSubKey,$sRegEntry,'1','REG_SZ')
Write( 'UCC - Enabled screen saver password protection.',1)
$iExCode = $iExCode | 4
ELSE
Write('INF - Screen saver already password protected.',1)
ENDIF
; Is a screen saver selected? If not, use the default screen saver.
$sRegEntry = 'SCRNSAVE.EXE'
$sTemp = ReadValue($sRegSubKey,$sRegEntry)
IF $sTemp = '(None)' OR @ERROR = 2
$RC = WriteValue($sRegSubKey,$sRegEntry,'%SYSTEMROOT%\System32\scrnsave.scr','REG_SZ')
Write( 'UCC - Enabled Default Screen Saver.',1)
$iExCode = $iExCode | 4
ELSE
Write('INF - Screen saver already selected.',1)
ENDIF
RETURN

New Mexico Mark

[ 03 April 2002, 23:55: Message edited by: New Mexico Mark ]

Top
#19482 - 2002-04-04 03:27 AM Re: WinExit.SCR via logon script. HOW ???
rismo Offline
Fresh Scripter

Registered: 2002-03-22
Posts: 5
I'll see if I can implement this into my logon script. I should have stated that I am new to Kixtart and scripting. Thanks
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.053 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org