Disable Windows 7 screensaver over RDP

How can I turn off the screensaver in RDP sessions and thus keep the session alive and unlocked, even if I am not actively working in it for some time?

Note: the solution should work without affecting the console itself. Only the RDP connections, please.


Solution 1:

I was able to accomplish this with Task Scheduler.

  1. Open Task Scheduler. Right click Task Scheduler Library and Create Task

  2. Name: Disable RDP Screen Saver

  3. Triggers: New Trigger, On Connection to User Session, Specific user (specify user), From a remote computer

  4. Actions: Start a program,

  5. Program: reg

  6. Arguments: add "HKEY_CURRENT_USER\Control Panel\Desktop" /f /v ScreenSaverIsSecure /t REG_SZ /d 0

  7. Open Task Scheduler. Right click Task Scheduler Library and Create Task

  8. Name: Enable RDP Screen Saver

  9. Triggers: New Trigger, On disconnect from User Session, Specific user (specify user), From a remote computer

  10. Actions: Start a program,

  11. Program: reg

  12. Arguments: add "HKEY_CURRENT_USER\Control Panel\Desktop" /f /v ScreenSaverIsSecure /t REG_SZ /d 1

Solution 2:

You can use the Registry Editor [Regedit.exe from command line] and find and edit the following key: HKEY_CURRENT_USER\Control Panel\Desktop\ScreenSaveActive If your screen saver is currently enabled the value will be 1, change it to 0 to disable.


Before you make changes to a registry key or subkey, Microsoft recommends that you export, or make a backup copy, of the key or subkey. You can save the backup copy to a location you specify, such as a folder on your hard disk or a removable storage device. If you make changes that you want to undo, you can import the backup copy. More info here