Windows 10: Update Screensaver via batch file

  1.    19 Dec 2017 #1

    Update Screensaver via batch file


    Ok ... Just found this forum couple weeks ago and was able to get some bang up batch file stuff. So ... figure I'd join. Especially, since my last piece of information retrieved from here isn't working.

    Ok ... this is for my computer and personal use only so the advice that you shouldn't change these settings on the user is noted .. but I'm the user so.... :)

    What I need is to CHANGE the screensaver time from 10min to ##min. I found the following.

    Reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaveTimeOut /t REG_SZ /d 5400 /f

    but... while the registry changes .... it is still timing out @ 10 minutes. If I open the screensaver dialog box it still shows 10min not 90. From another batch file on the desktop sorting I added this to the above

    taskkill /f /im explorer.exestart explorer.exe

    thinking that maybe this needed to happen. Nope still no change.


    Now I've flew through some other threads referencing issues with other settings, I think fast start up, that appear to be screwing up something, but now can't find that thread.


    Can someone shed some light on or point me to a thread with a definitive answer on how to change the screensaver time ( has to be via a macro or something ) as it is being called via VBA ( and NOT manual solution )
      My ComputerSystem Spec

  2.    20 Dec 2017 #2

    I tried with procmon and this is what is updated:

    Click image for larger version. 

Name:	Capture.PNG 
Views:	2 
Size:	42.0 KB 
ID:	168893

    If you set the registry key (as you describe above) then the screensaver timeout isn't updated until you log off and on again.

    According to here it has been like this since XP.
    My change did not take effect until after I logged out and back in.
    Change screen saver timeout in the registry - Windows XP

    Certainly if I change ScreenSaveTimeOut (and only that) it works after log out/log in or restart.

    Is that good enough?

    I don't know what job to restart without doing this or even if it is possible.

    Just for your interest Screensaver is deprecated - this means it works currently but (might be) be dropped completely in the future.

    Screen saver functionality in Themes

    To be disabled in Themes (classified as "Removed" in this table). Screen saver functionality in Group Policies, Control Panel, and Sysprep is now deprecated but continues to be functional. Lockscreen features and policies are preferred.
    https://support.microsoft.com/en-us/...ll-creators-up
      My ComputerSystem Spec

  3.    20 Dec 2017 #3

    lx07,

    Thanks for the information .... I'm ok with, i guess, that this may or may not work at this time. However, what I am needing to prevent from happening ( well adjusting ) is controlling when the "lock screen" activates or doesn't activate. So I guess now I need to find the entries for the lock screen timing.


    If you happen to know what those entries are ... it would be great to know.
      My ComputerSystem Spec


 

Related Threads
How can I add to this batch command to include the date: xcopy C:\all\* Z:\Allbak\* /E /Y /C I'd like the resulting file to be named "Z:\Allbak171129" (yr mo day). The plan is to set up a task schedule to run the batch file every week. I...
Startup batch file in General Support
When Windows 10 starts, a DOS window appears, runs: C:\Users\Brian\AppData\Local\854e8f7.bat , then disappears. The .bat file contains: start "plqcknRlU67iM4TfEXQq" "%LOCALAPPDATA%\b183312\88d4f24.21b2bbd3" There are two files in...
Need help with batch file in General Support
No serious Batch file or scripting experience, so bear with me. We use a site for our business that has to run on IE and has to have the cache cleared a certain way sometimes for it to function. We have to go IE options, uncheck delete history on...
Batch File Help in Software and Apps
I've never dabbled much in batch files, as I've usually been able to find pre-made ones to do what I wanted. We have an application that handles user data backups. It has three services, and at times, one or two of the three don't start...
Hi there forum, how do you change the Visual effects using a batch file or registry file. Thanks, Edward.
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 09:10.
Find Us