I got fed up with a Windows server putting on a lock screen all the time.
I found out an easy way to prevent it at Linux RDP client side with xdotool. It is available on Debian/Ubuntu (install with
apt install xdotool) and is also in EPEL for RHEL/CentOS/etc.
Just start the following script in background: