Disable screensaver using registry settings

by admin on December 1, 2010

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_USER\Control Panel\Desktop

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_USER\Control Panel\Desktop” /v ScreenSaveActive /t REG_SZ /d 0 /f

To enable screen saver:

Reg add “HKEY_CURRENT_USER\Control Panel\Desktop” /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_USER\Control Panel\Desktop” /v ScreenSaveActive /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_USER\Control Panel\Desktop” /v ScreenSaverIsSecure /t REG_SZ /d 1 /f

To disable password protection:

Reg add “HKEY_CURRENT_USER\Control Panel\Desktop” /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 XP, Server 2003, Vista and Windows 7.

{ 1 comment… read it below or add one }

John Clark March 21, 2014 at 4:38 pm

The commands for disabling screensaver and for changing timeout appear identical. Is this correct? Thanks in advance!

Reply

Leave a Comment

HTML tags are not allowed.

Previous post:

Next post: