Categories: User Settings

Disable screensaver using registry settings

We can change screen saver on a computer by changing the settings in display properties. We also have a registry hack to change screen saver settings.  These screen saver settings are stored under the following registry key.HKEY_CURRENT_USERControl PanelDesktop

Registry values that control screen saver behavior:

  • ScreenSaveActive
  • SCRNSAVE.EXE
  • ScreenSaveTimeOut
  • ScreenSaverIsSecure

To disable or enable screen saver using registry key

Set the value of the registry value ScreenSaveActive to 0. From command line you can run the below command for doing this.

Reg add "HKEY_CURRENT_USERControl PanelDesktop" /v ScreenSaveActive /t REG_SZ /d 0 /f

To enable screen saver:

Reg add "HKEY_CURRENT_USERControl PanelDesktop" /v ScreenSaveActive /t REG_SZ /d 1 /f

To change timeout for activating the screen saver

Set the data in the registry value ScreenSaveTimeOut to the timeout limit in seconds. For example if you want to set the time out to 20 minutes you need to change the value of this registry key to 1200.
From command line you can run the below command to change screen saver timeout limit.

Reg add "HKEY_CURRENT_USERControl PanelDesktop" /v ScreenSaveTimeOut /t REG_SZ /d 0 /f

To enable or disable password protection when the session is resumed

You can password protection by setting the data in ScreenSaverIsSecure to 1. If you set this to 0, you will not be asked to provide password when you interrupt the screen saver to resume the user session.

From Windows command line you can run the below command to enable password for the screen saver.

Reg add "HKEY_CURRENT_USERControl PanelDesktop" /v ScreenSaverIsSecure /t REG_SZ /d 1 /f

To disable password protection:

Reg add "HKEY_CURRENT_USERControl PanelDesktop" /v ScreenSaverIsSecure /t REG_SZ /d 0 /f

To change screen saver using registry key

Read the post  Change screen saver from Windows command line using registry key

The above registry keys apply to Windows 11 and Windows 10, Server 2003, Windows 11 and Windows 10.

Srini

View Comments

  • Hi i dont understand how i change the permission so my screen doesnt lock after 10 minutes. My organization manages this and i cant change it. HELP PLIS!

  • I changed both keys, no one works ...
    but are you sure that they work?

    "Computer\HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Control Panel\Desktop"
    "Computer\HKEY_CURRENT_USER\Control Panel\Desktop"

    i have Windows 10 PRO 64bit

  • From command line you can run the below command to change screen saver timeout limit.

    MISTAKE:

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

    TRUE:
    Reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaveTimeOut /t REG_SZ /d 1200 /f

    • Both of those are correct. The one with 1200 sets the screen saver to activate at 20 minutes (1200 seconds). The one with zero means to never activate the screen saver.

  • Is there a way to lock these settings down so users can't change them? I am looking for a screensaversetting window that has the options grayed out.

    Thanks,

  • What may be throwing some people is if a policy has been set on the system regarding the screensaver. Those settings are in a different location in the registry.
    HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop
    Here, the same settings you mentioned in your article can be applied.

    • Sure there is. Did you try it from a command prompt?

      C:\>reg /?
      REG Operation [Parameter List]
        Operation  [ QUERY   | ADD    | DELETE  | COPY    |
                     SAVE    | LOAD   | UNLOAD  | RESTORE |
                     COMPARE | EXPORT | IMPORT  | FLAGS ]
      Return Code: (Except for REG COMPARE)
      
        0 - Successful
        1 - Failed
      
      For help on a specific operation type:
      
        REG Operation /?
      
      Examples:
      
        REG QUERY /?
        REG ADD /?
        REG DELETE /?
        REG COPY /?
        REG SAVE /?
        REG RESTORE /?
        REG LOAD /?
        REG UNLOAD /?
        REG COMPARE /?
        REG EXPORT /?
        REG IMPORT /?
        REG FLAGS /?
      
  • Is it possible to run the screen saver for a limited amount of time then returns to desktop automatically?

  • Actually, the information above is not correct (or at least not complete) for Win7 Pro.
    Yes, deactivating the screensaver from the registry makes it so the screensaver doesn't start, but the system still locks the screen without a screensaver.
    But that behavior is not controlled by the powerconfig control panel.
    Interestingly, setting the timeout value for the screensaver to a large number doesn't change the actual behavior of the screensaver (or the reading on its control panel).

  • Hi,

    wondering if you can set the timeout to 'never'?

    Would a value of 0 do that?
    (worried it will flip on me and make the screen go permanently off if I try that, so haven't tried it yet..)

    • I have managed to disable the screensaver, but the screen still locks itself after a few minutes so I have to ctrl+alt+del and type in my password again. (I have set the 'ScreenSaveIsSecure' to 0 already)

      Would that be a power setting and a different article?

      • This is not a screen saver then. The display becomes blank after some time which is controlled by powersettings.
        Open powercfg.cpl. Here you can increase the timeout period or set it to never. If you go further to 'Advanced' you can disable password prompt after hibernate/standby. Something similar to http://www.technlg.net/windows/disable-password-prompt-hibernate/ (this article is about XP, but the steps are similar in Win7)

    • So you meant never activate the screensaver, right? You can refer the section 'To disable or enable screen saver using registry key' in this post.

  • hi I like to have these hacks for screen saver made into an register file can you email these hacks for turning off screen saver for windows 8 also the time turn off and files to turn them on again that is 4 files I need with register files to double click.
    Our upload to website I can download.
    Thanks for help.
    Yours,
    Harold

Share
Published by
Srini

Recent Posts

Manage Print Jobs in Windows 11 & 10 Using PowerShell

Use PowerShell to list, pause, resume, and cancel print jobs in Windows 11 and Windows…

3 days ago

Add New User Account from Command Prompt (CMD)

Create local or domain user accounts from Command Prompt in Windows 11 and Windows 10…

4 years ago

Delete directory from command line [Rmdir]

Do you want to delete a directory from Windows Command Prompt (CMD)? This post explains…

4 years ago

TaskKill: Kill process from command line (CMD)

We can kill a process from GUI using Task manager. If you want to do…

4 years ago

Kill Chrome from command line

Chrome is definitely the stable browser compared to other ones and it has been my…

4 years ago

Find Windows OS version from command line

Windows has multiple command line utilities that can help find the version of the Windows…

4 years ago