Forzare lo screensaver di default e di un utente

From RVM Wiki
Jump to navigation Jump to search

Screensaver di default

E' quello che parte al ctrl-alt-canc.Questo esempio installa lo screensaver slideshow, che esegue uno slideshow dei files presenti in c:\windows\slideshow.

Prelevare lo Screensaver Slideshow

Questo è lo script che lo imposta che va eseguito da ADMINISTRATOR:

REM Setup Screensaver

COPY \\%DOM%SERVER\Install\Tools\Screensaver\Slideshow.scr C:\Windows\System32
mkdir C:\Windows\SlideShow
COPY \\%DOM%SERVER\Install\Loghi\Euronics_1024x768.bmp C:\Windows\SlideShow
REG IMPORT \\%DOM%SERVER\Install\Settings\Screensaver_System.reg

:: Enable the On resume, password protect box 
REG ADD "HKCU\Control Panel\Desktop" /V ScreenSaverIsSecure /T REG_SZ /F /D 1
:: Enable the user's ability to see the Screen Saver, background, and appearance tabs of Display Properties. 
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /V NoDispScrSavPage /T REG_DWORD /F /D 0
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /V NoDispBackgroundPage /T REG_DWORD /F /D 0
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /V NoDispAppearancePage /T REG_DWORD /F /D 0

Questi sono i settaggi

Windows Registry Editor Version 5.00

[HKEY_USERS\.DEFAULT\Control Panel\Desktop]
"ScreenSaverIsSecure"="0"
"ScreenSaveTimeOut"="30"
"ScreenSaveActive"="1"
"SCRNSAVE.EXE"="SlideShow.scr"

[HKEY_USERS\.DEFAULT\Software\Fourmilab.ch]

[HKEY_USERS\.DEFAULT\Software\Fourmilab.ch\Screen Saver.SlideShow]
"DateAndTime"=dword:00000000
"FileName"=dword:00000000
"FileType"=dword:00000000
"ForcePalette"=dword:00000000
"ShufflePlay"=dword:00000001
"RandomPosition"=dword:00000001
"ChangeTime"=dword:00000005
"SoundMode"=dword:00000000
"SoundPause"=dword:0000000f
"SlideDirectory"="C:\\WINDOWS\\SlideShow"
"IgnoreURL"=dword:00000001

Screensaver utente

Questo è lo script che lo abilita:

REM Setup Screensaver
    :: Configure the screen saver.
    REG ADD "HKCU\Control Panel\Desktop" /V SCRNSAVE.EXE /T REG_SZ /F /D "%SystemRoot%\System32\SLIDES~1.SCR"
    REG ADD "HKCU\Control Panel\Desktop" /V ScreenSaveActive /T REG_SZ /F /D 1
    :: Set the time out to 300 seconds (5 minutes).
    REG ADD "HKCU\Control Panel\Desktop" /V ScreenSaveTimeOut /T REG_SZ /F /D 120
    :: Disable the On resume, password protect box 
    REG ADD "HKCU\Control Panel\Desktop" /V ScreenSaverIsSecure /T REG_SZ /F /D 0
    :: Remove the user's ability to see the Screen Saver, background, and appearance tabs of Display Properties. 
    REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /V NoDispScrSavPage /T REG_DWORD /F /D 1
    REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /V NoDispBackgroundPage /T REG_DWORD /F /D 1
    REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /V NoDispAppearancePage /T REG_DWORD /F /D 1
    :: Import Custom Settings
    REG IMPORT \\%DOM%SERVER\Install\Settings\SlideShow.reg

REM Make the changes effective immediately 
    %SystemRoot%\System32\RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters

Questi sono i settaggi per lo screensaver slideshow:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Fourmilab.ch]

[HKEY_CURRENT_USER\Software\Fourmilab.ch\Screen Saver.SlideShow]
"DateAndTime"=dword:00000000
"FileName"=dword:00000000
"FileType"=dword:00000000
"ForcePalette"=dword:00000000
"ShufflePlay"=dword:00000001
"RandomPosition"=dword:00000001
"ChangeTime"=dword:00000005
"SoundMode"=dword:00000000
"SoundPause"=dword:0000000f
"SlideDirectory"="C:\\WINDOWS\\SlideShow"
"IgnoreURL"=dword:00000001

Riferimenti