After starting an RDP session I end up logged out as soon as I’m inactive for a while. This seems to be some new MS security measure.
How to Prevent Remote Desktop from Locking: Tips for Seamless Remote Access.
Navigate to “PC Configuration” > “Administrative Templates” > “Windows Components” > “Remote Desktop Services” > “Remote Desktop Session Host” > “Session Time Limits.”
Double-click on “Set time limit for disconnected sessions” and select “Disabled” to prevent the automatic locking of disconnected remote sessions.
Double-click on “Set time limit for active but idle Remote Desktop Services sessions” and select “Disabled” to prevent the automatic locking of active but idle remote sessions.
Press “Apply” & “OKAY” to save the modify.
This was probably enough but also disabled AutoLockAfterLogon in Task Scheduler.