Microsoft Windows – Configure screensaver from Command Line

We can configure [gs screensaver] settings through display settings. Screensaver can be configured from windows command line as well.

To set the screensaver to ‘None‘ from command line:

reg delete “HKEY_CURRENT_USER/Control Panel/Desktop” /v SCRNSAVE.EXE /f

To set the screensaver to ‘Blank‘ from command line:

reg add “HKEY_CURRENT_USER/Control Panel/Desktop” /v SCRNSAVE.EXE /t REG_SZ /d
C:/Windows/system32/scrnsave.scr /f

You can get the list of [gs screensaver] options you have:

dir C:/windows/system32/*scr /b

On my Windows 7 system it shows the following screensavers:

C:\Users\administrator>dir C:/windows/system32/*scr /b
Bubbles.scr
Mystify.scr
PhotoScreensaver.scr
Ribbons.scr
scrnsave.scr
ssText3d.scr
C:/Users/administrator>

 To set Bubbles as the screensaver you need to run the following command from command line.

reg add “HKEY_CURRENT_USER/Control Panel/Desktop” /v SCRNSAVE.EXE /t REG_SZ /d
C:/Windows/system32/Bubbles.scr /f
SOURCE

LINK (Windows-commandline.com)

LANGUAGE
ENGLISH