Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to deploy a photo screensaver to several Windows 7 machines. Due to some unique restraints, I can only do it from a .bat file (no group policy). I have come up with this script:

@echo off
mkdir "c:\photos"
copy *.jpg "c:\photos"
reg delete "HKCU\Software\Microsoft\Windows Photo Viewer\Slideshow\Screensaver" /v EncryptedPIDL /f
reg add    "HKCU\Software\Microsoft\Windows Photo Viewer\Slideshow\Screensaver" /v EncryptedPIDL /t REG_SZ /d "FAAfUOBP0CDqOmkQotgIACswMJ0ZAC9DOlwAAAAAAAAAAAAAAAAAAAAAAAAAUAAxAAAAAAAdQ+ByEABwaG90b3MAADoACAAEAO++HUPNch1D4HIqAAAAF78BAAAAEAAAAAAAAAAAAAAAAAAAAHAAaABvAHQAbwBzAAAAFgAAAA==" /f
reg delete "HKCU\Control Panel\Desktop" /v SCRNSAVE.EXE /f
reg add    "HKCU\Control Panel\Desktop" /v SCRNSAVE.EXE /t REG_SZ /d  C:Windows\System32\PhotoScreenSaver.scr /f
reg delete "HKCU\Control Panel\Desktop" /v ScreenSaveTimeOut /f
reg add    "HKCU\Control Panel\Desktop" /v ScreenSaveTimeOut /t REG_SZ /d 60 /f
reg delete "HKCU\Control Panel\Desktop" /v ScreenSaverIsSecure /f
reg add    "HKCU\Control Panel\Desktop" /v ScreenSaverIsSecure /t REG_SZ /d 1 /f
reg delete "HKCU\Control Panel\Desktop" /v ScreenSaveActive /f
reg add    "HKCU\Control Panel\Desktop" /v ScreenSaveActive /t REG_SZ /d 1 /f
rundll32.exe user32.dll, UpdatePerUserSystemParameters

which is being run "as an administrator". The correct screen saver settings show up in the control panel dialog box, but the machines just go to the lock screen (and don't show the screen saver) when the timeout is reached. Is there another setting I'm missing? Can anyone help out, I've been struggling with this and can't make any headway. Thanks

share|improve this question
    
Where do you plan to deploy this? –  krowe Aug 29 '13 at 15:39
    
It's a rather unique setup of machines that are effectively reloaded with a new windows image over the network on every reboot. They run a customization script on boot that sets up some necessary things. This setup was chosen so that students can do whatever they like with the machines (be admin tinker) and they are clean after reboot (not ideal, but it works). –  David Alvares Aug 29 '13 at 15:53
    
Have you tried logging out and in again? –  Scott Aug 30 '13 at 2:09
    
I have tried logout/login and it does not work, sadly. If I go to the screen saver dialog and change it to none and then back to photos it works, though. –  David Alvares Aug 30 '13 at 20:37

1 Answer 1

Accidentally wrote:

C:Windows\System32\PhotoScreenSaver.scr

instead of:

C:\Windows\System32\PhotoScreenSaver.scr

Somehow, Windows still chose the correct screensaver in the properties dialog, but wouldn't actually work. It also added another entry called PPhotos?? My mistake just manifested very strangely.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.