Disable Windows 7 screensaver over RDP
I was able to accomplish this with TaskScheduler.
In Windows 7:
- 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
In Windows 8, 10:
- 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