Windows

Using registry shortcuts to disable and enable screen savers in Windows XP

The steps in this tip will show you how to edit the registry for a time-saving shortcut in enabling and disabling your screensaver.

Stay on top of the latest XP tips and tricks with our free Windows XP newsletter, delivered each Thursday. Automatically sign up today!

When you perform maintenance operations such as defragmenting or backing up the hard disk, you probably disable your screen saver before you begin in order to prevent it from interfering with the maintenance operation. However, disabling your screen saver manually is a multistep operation that involves accessing the Display Properties dialog box, navigating to the Screen Saver tab, and then setting the screen saver to None. Then, you need to re-enable the screen saver after you complete the maintenance operation.

Fortunately, you can automate the disabling and enabling screen saver procedures with a couple of registry shortcuts. Follow these steps:

  1. Launch Notepad and type the following four lines. (Note: The second line must be blank.)
  2. Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USER\Control Panel\Desktop]
    "ScreenSaveActive"="0"

  3. Save the file to your desktop with the name Disable Screen Saver.reg.
  4. Change the 0 to a 1 in the fourth line.
  5. Save the file to your desktop with the name Enable Screen Saver.reg.

Now, when you need to disable the screen saver, just double-click the Disable Screen Saver.reg shortcut. To enable the screen saver, simply double-click the Enable Screen Saver.reg shortcut.

Keep in mind that when you run either of these files, the Registry Editor will display two confirmation prompts--one before making the change and one after making the change.

Note: Editing the registry is risky, so make sure you have a verified backup before making any changes.

About

Greg Shultz is a freelance Technical Writer. Previously, he has worked as Documentation Specialist in the software industry, a Technical Support Specialist in educational industry, and a Technical Journalist in the computer publishing industry.

0 comments

Editor's Picks