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.
-
Open Task Scheduler. Right click
Task Scheduler Library
andCreate Task
-
Name: Disable RDP Screen Saver
-
Triggers: New Trigger, On Connection to User Session, Specific user (specify user), From a remote computer
-
Actions: Start a program,
-
Program:
reg
-
Arguments:
add "HKEY_CURRENT_USER\Control Panel\Desktop" /f /v ScreenSaverIsSecure /t REG_SZ /d 0
-
Open Task Scheduler. Right click
Task Scheduler Library
andCreate Task
-
Name: Enable RDP Screen Saver
-
Triggers: New Trigger, On disconnect from User Session, Specific user (specify user), From a remote computer
-
Actions: Start a program,
-
Program:
reg
-
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