Is it possible to terminate an RDP connection based on user inactivity?
原因
The answer to the question unfortunately is "no".
解决办法
Based on the network traffic it is impossible to tell if a connection is idle. It is not possible to distinguish user activity from other traffic in terms of RDP protocol. This is by design form Microsoft and not a restriction on PSM side.